1. Rob sequence ??
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 ? ).
Bernie
2. Re: Rob sequence ??
Bernie,
I've found that the easiest way to find out is to run a program like
Windows' System Monitor and watch allocated memory change as I run my
program. Of course, this is a Windows tool and I can't tell you what to do
for DOS or Linux but it's just an idea for you...
-- Brian
----- Original Message -----
From: Bernie Ryan <bwryan at PCOM.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Sunday, August 01, 1999 10:43 AM
Subject: [EUPHORIA] Rob sequence ??
> 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 ? ).
> Bernie
>
3. Re: Rob sequence ??
On Sun, 1 Aug 1999 13:42:58 -0700, Brian K. Broker <bkb at CNW.COM> wrote:
>Bernie,
>
>I've found that the easiest way to find out is to run a program like
>Windows' System Monitor and watch allocated memory change as I run my
>program. Of course, this is a Windows tool and I can't tell you what to do
>for DOS or Linux but it's just an idea for you...
>
>-- Brian
Brian
System Monitor is NT utility
Bernie
4. Re: Rob sequence ??
- Posted by Robert Craig <rds at ATTCANADA.NET>
Aug 01, 1999
-
Last edited Aug 02, 1999
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/
6. Re: Rob sequence ??
- Posted by "Brian K. Broker" <bkb at CNW.COM>
Aug 01, 1999
-
Last edited Aug 02, 1999
FYI, Win98 also has a system monitor utility although it may not be
installed by default.
Would be under Programs -> Accessories -> System Tools
>
> Brian
> System Monitor is NT utility
> Bernie
>
7. Re: Rob sequence ??
I didn't waste my money on win98 when I already had win95 sr2 and
IE 5.0. Win98 will probably not be around that long when win2000
comes out.
Bernie