Re: Memory usage on Win32: Euphoria usage vs. what Task Manager displays
- Posted by mattlewis (admin) Jul 31, 2009
- 1041 views
I'll rebuild using managed mem to see if it does anything different.
Yep, using mananged_mem exhibits the effects that Andy reported. One needs to compile with System Memory in order for it to release memory.
That makes sense. They both use the windows allocation API, but the 'managed memory', which is the default, caches your freed memory for its later reuse. This is what euphoria has always done (for quite a long time, at least). This speeds up the case where there is a lot of allocation and deallocation (though not nearly as much as it used to on older windows).
Perhaps we should look into limiting the size, and after some amount, we let the memory go back to the operating system. I'm not sure how difficult it would be, but it seems like the right thing to do.
Matt