-
Notifications
You must be signed in to change notification settings - Fork 31
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
Memory leak with simple vector code #60
Comments
Thanks for the report! I did a brief investigation by compiling this program with What's interesting is that when I checked out VisualVM, the old generation for the GC was through the roof - 1GB! This means that there's a memory leak going on somewhere. The code is nice and small so it should be easy to investigate. Thank you for constructing a minimal example! I'll take a look at this. |
Some notes on the investigation for this:
Two bugs with one program, great work @rpeszek! :) |
Vector package is heavily optimized with Core rewrite rules. This code executes in milliseconds and small amount of constant space in GHC:
But in Eta it runs forever and eventually produces OutOfMemory exception. I have looked at the patch for vector and I did not see any aggressive removal of
{# RULES ... #}
.Is this a case of something special that Eta currently does?
I believe that all vector package optimization is in the Core layer and am surprise at such a big difference.
Thank you for any help answering this question.
The text was updated successfully, but these errors were encountered: