Re: Memory usage on Win32: Euphoria usage vs. what Task Manager displays
- Posted by DerekParnell (admin) Jul 30, 2009
- 1026 views
AndySerpa said...
Anyone care to report what happens in v4.0?
Just tried your programs in v4 and it looks like v4 releass memory back to the operating system when your program fully dereferences a sequence. This means that when you set a sequence to an atom, and there are no other references to that sequence, the memory is given back to the operating system. This also happens to sequence variables, which are declared inside routines, when the routine exits.
procedure test() sequence AA AA = repeat(0, 40_000_000) -- allocate 160 Meg of space sleep(3) end procedure -- RAM is returned at this point.