-
-
Notifications
You must be signed in to change notification settings - Fork 108
perf: defer Queue creation in DedicatedThreadExecutor
#4508
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
SummaryDefers Queue allocation in DedicatedThreadSynchronizationContext to reduce memory allocations when the work queue is never used. Critical IssuesNone found ✅ SuggestionsNone - this is a solid performance optimization that aligns with TUnit's "Performance First" principle. The lazy initialization pattern is correctly implemented with proper null checks and thread-safe initialization under the existing lock. Verdict✅ APPROVE - No critical issues The change demonstrates:
|
7e6394a to
06a4130
Compare
|
Is the modular pipelines check broken? #4508 is also failing because of a weak refernce check failiure in NET framework |
I think it's a flaky test that I need to look into |
Defer initialisation of
QueueinDedicatedThreadExecutorI tried this with
List<Task> _taskQueueand didn't see an improvement, presumably it will always contain at least one object so deferring is useless.Before
After