perf: cache CreateExecutableTestFactory delegate#4292
Conversation
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Cache the factory delegate instead of creating new lambdas on every property access. This avoids repeated allocations in the hot path during test execution. Fixes #4281 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
SummaryCaches the Critical IssuesNone found ✅ SuggestionsThread Safety (Minor)The caching pattern in
If you want to eliminate the race entirely, consider using .gitignore ChangeThe Verdict✅ APPROVE - Performance improvement with dual-mode consistency. The thread safety consideration is minor and acceptable given the benign race and consistency with existing reflection mode implementation. |
Summary
TestMetadata<T>.CreateExecutableTestFactoryinstead of creating new lambdas on every property accessFixes #4281
Test plan
🤖 Generated with Claude Code