-
Notifications
You must be signed in to change notification settings - Fork 16
High memory utilization on 1.0.0.0 (d6b1bcb1) #274
Comments
To compare, 0.7 uses less that 100MB of ram for the same codebase and runs much faster. |
I can't think of any obvious changes in the compiler which would cause such a blowup - I will do some profiling later today. The standard library definitely has some impact on this (assuming you're using it). Using the compiler from 662992a, and running with In both cases, GC amounts to ~40% of runtmie, which is a little worrying. Optimisation is something we really need to work on. That said, the maximum residency is never more than 15MB, so curious that it's not compiling on a 4GB machine. |
@Lupus Would you be able to run |
I fixed a rather embarrassing case of exponential blowup of the type-class trie when combining environments (see b4d4784), which has dramatically improved performance in some cases (40s → 3.7s). It might be worth trying that version and seeing what, if any, improvements it makes. Doesn't really seem to change loading the prelude at all, but you might be lucky :). |
Cool, I'll give it a try when I get back to the project that uses amulet. Thanks! |
amc
uses gigabytes of memory to compile ~1k sloc codebase. I didn't run into this issue with 0.7. My VM has 4 GB of ram. It does not seem to be connected with specific constructs, just commenting out portions of code make memory usage go down until it finally manages to compile within 4GB that I have.The text was updated successfully, but these errors were encountered: