-
-
Notifications
You must be signed in to change notification settings - Fork 108
perf: avoid creating closure #4393
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
SummaryEliminates closure allocations in metadata caching hot paths by using the state-passing overload of Critical IssuesNone found ✅ SuggestionsNone - this is a clean performance optimization that aligns perfectly with TUnit's "Performance First" principle. The use of Verdict✅ APPROVE - No critical issues Great optimization! This is precisely the kind of hot path improvement that benefits test discovery performance across all TUnit projects. |
Prevent closure creation for
AssmeblyMetadaandClassMetadata, usingGetOrAdd<TArg>(TKey, Func<TKey,TArg,TValue>, TArg)Not a massive saving probably around 100KB on
TUnit.TestProject