Re: free seems not work
- Posted by mattlewis (admin) Feb 23, 2011
- 1552 views
useless said...
I also have asked for a way to free memory used once and not needed again. I figure it just won't happen in Euphoria, using 32bits for each 7bit ascii character is the norm.
It gets worse! We use 64 bits with 64-bit euphoria (similar to, e.g., erlang).
I think that the switch to the Heap functions was meant to return memory to the OS, but I think now that it's still committed to the process, as far as the OS is concerned. So while it would get recycled in future allocations, it would always appear allocated to other processes.
Matt