Re: Memory usage on Win32: Euphoria usage vs. what Task Manager displays
- Posted by mattlewis (admin) Jul 31, 2009
- 1009 views
AndySerpa said...
x = <big sequence> y = x x = 0 -- y still references big sequence, so memory is not released
But are there situations where I set all explicit references to atoms and there would still be an internal reference hanging around?
It might be possible. If there was a temporary variable used at top level that referenced the sequence, it might not be released. v4 has changed a lot of things about the way references are handled.
One change is that we're trying to release references created by temps as soon as possible. Previously, they were often only released at the end of their routine, which was basically never, if the routine was actually the top level.
Matt