Open benaadams opened 4 days ago
Recovery thread should also have boosted priority.
Is start of block; is either not doing anything or is doing catch up when main thread is processing and then its competing with the Parallel.For s in main processing
My main concern is that before recovery and processing had dedicated threads and now they will compete on thread pool.
Can't use async on dedicated thread or loose the thread on first await. Don't think is hugely significant; still boost main processing and Recovery doesn't out compete all the parallel processing of main thread.
Changes
ConcurrentQueue
in aBlockingCollection
burns a ton of CPU spinning; whereas its a pattern ideally suited toChannel
s; and using trueasync
for rather thanTaskCompletionSource
for async is lower overhead.Types of changes
What types of changes does your code introduce?
Testing
Requires testing