excel_to_code icon indicating copy to clipboard operation
excel_to_code copied to clipboard

Freeing memory is very slow

Open tamc opened this issue 13 years ago • 1 comments

With the 2050 pathway calculator example: calculating the pathway takes about 40ms. The reset method that frees allocated memory increases this to 120ms.

tamc avatar Jun 12 '12 20:06 tamc

I haven't noticed a big hit on pathway calculation, but memory use has certainly dropped, and pretty much stabilised.

As I wrote elsewhere: memory use quickly stabilises just under 200 MB, and then very slowly rises by about 0.1MB or so, now and again. After a few dozen hits, it seemed to settle at 200.6MB, after rising to 200.7MB. A lot of hits later, it had risen to 205.9MB. So there would still appear to be a small leak, but it's pretty slow, and easily resolved with a restart of Rack once in a while - rare enough (on my server at least) to not be a critical problem.

energynumbers avatar Jun 14 '12 11:06 energynumbers