-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Add support for parallel iteration of query results using Rayon. #17
Conversation
e13955b
to
197e6c8
Compare
Performance seems indeed rather mixed, the first variant using
The second variant providing an indexed parallel iterator always looses out to the serial version without tuning
but it can be tuned using
which is a speed-up over the serial version but worse than the first variant except for the case of very many small archetypes where it is much faster than the first variant yet still slower than the serial version. (The benchmark is probably unrealistic insofar parallel queries would only be used if the body of the system is substantial so that the overhead of iteration itself is less pronounced. But then again, making things slower due to mistakenly opting for parallel iteration is probably also not good usability.) |
Things improve considerably when a specialised implementation of
|
5b4d13f
to
3e5ed70
Compare
…erator at the cost of increased complexity and slower iteration speed.
…the overhead associated with double-ended iteration.
👍 |
No description provided.