New GitHub issue #102024 from jackcvr:<br>

<hr>

<pre>
# Feature or enhancement

Call _idle_semaphore.release() if only work queue is empty

# Pitch

Currently _idle_semaphore.release() is called after processing every item in queue. That produces useless calls in case when queue still has items to process.
The optimization is going to increase processing speed of work queue.

</pre>

<hr>

<a href="https://github.com/python/cpython/issues/102024">View on GitHub</a>
<p>Labels: type-feature</p>
<p>Assignee: </p>