-
Notifications
You must be signed in to change notification settings - Fork 507
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
Comparison with Spice #1188
Comments
This micro-benchmark is kind of a worst case for rayon -- maximally splitting into jobs with very little actual work involved in each. Some quick A possibly nicer implementation of that could use We don't have current plans to work on the overhead, but of course I'd love to see any improvements that folks can come up with. I wonder if it would be possible to even rewrite |
I just saw this Spice port on HN: https://github.com/dragostis/chili |
I tried My guess for the cause is
cc @dragostis for visibility |
@kdy1, my initial hunch is that there might be contention on the The heartbeat algorithm relies on the context's lock being acquired not too often, i.e. when the heartbeat happens. That's the moment when workers exchange work. Apart from that, the only contention is on one relaxed atomic that happens here, but this isn't the issue according to your stack. |
@dragostis Yeap, that was the problem. Thank you so much for a such great library! I managed to get I'll try this trick to optimize the ES linter and minifier after trying to create a safe interface for |
See the README in https://github.com/judofyr/spice
Why is the overhead of Rayon that huge? Are there any plans to reduce it?
The text was updated successfully, but these errors were encountered: