-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Worker pool should share queue instead of round-robin distribution #1471
Comments
I am not sure we want to do this, actually. Two reasons:
Ref #1691. |
It may be different, but it'll improve the speed of the app quite a bit by using the cores more effectively.
This may make sense in a JS environment where you have to copy over data to the workers, but in C++ we can move this data between threads for free, so an affinity is not required. I also think it's not desired since it may cause situations where tile distribution across threads is out of balance, requiring more work. |
In addition to assigning work to threads more efficiently, the implementation should ensure that:
In other words, each worker should have its own serial, FIFO execution queue, but any individual item can be processed on whatever thread in the pool is available. |
From #1455:
The text was updated successfully, but these errors were encountered: