The .get() function raises a queue.Empty exception anyway, so there was no real need for the .empty() call. Furthermore, it turned out to really slow things down.
The .get() function raises a queue.Empty exception anyway, so there was no real need for the .empty() call. Furthermore, it turned out to really slow things down.