-
Notifications
You must be signed in to change notification settings - Fork 100
Check effect of shrinking on non-moving collector #441
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
Comments
@bgamari, your input would be very much appreciated. |
To provide a single datapoint: The 8% speedup as a result of using unordered-containers/unordered-containers.cabal Lines 138 to 139 in fe33c60
Roughly what is this funny business? I'm very unfamiliar with how the non-moving GC works. |
Roughly, I have no idea. I just saw calls to some functions or macros in the cmm definition of the shrinking primop. How did it do with the copying collector? |
I didn't try that. Something like |
It would be interesting to see, but shrinking is pretty much totally free with that collector, so I imagine the improvements would be even larger. |
If the code was faster than before when you tested with the non-moving collector, I think we can close this. |
Alright. |
When the non-moving garbage collector is in use, each shrink operation has to do some funny business to support it. How expensive is this? Is it expensive enough to justify cloning instead, especially for very small arrays?
The text was updated successfully, but these errors were encountered: