so I think I found a way to pause the thread pool without costing any performance. Basically the last running thread is only paused in case all other threads are also waiting and after a certain timeout (pausing the thread pool should just be a last resort in case the library is actually paused).
I compared to the unmodified version and could not observe any performance hit.
Hi @K-os ,
so I think I found a way to pause the thread pool without costing any performance. Basically the last running thread is only paused in case all other threads are also waiting and after a certain timeout (pausing the thread pool should just be a last resort in case the library is actually paused).
I compared to the unmodified version and could not observe any performance hit.
Maybe this could be a good starting point.