Re: Rob sequence ??
Bernie Ryan writes:
> Rob
> If I create a huge sequence and then later set it to empty does
> the compiler release the resources back to the heap ?
> (I assume its allocated from the heap ? ).
Short answer: Yes.
Long answer: Which heap? Euphoria recycles the space
within it's own heap, making the space available for
things that happen later in your program. Euphoria does not
return the space to the operating system for other programs
to use (except at the very end). That's a complicated thing to do,
and it's extremely rare that any program will attempt to do it.
A resource monitor will show the memory usage increasing, or
staying the same, during execution of your program. The
operating system can always swap Euphoria out, and make
space in memory for other programs in that way.
Euphoria programs typically use more and more memory
as they start up, but then they reach a steady state where
they are freeing up memory as fast as they are allocating
more memory.
Regards,
Rob Craig
Rapid Deployment Software
http://members.aol.com/FilesEu/
|
Not Categorized, Please Help
|
|