-
-
Notifications
You must be signed in to change notification settings - Fork 108
perf: cache CreateExecutableTestFactory delegate #4292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-Authored-By: Claude Opus 4.5 <[email protected]>
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 <[email protected]>
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