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

new topic     » topic index » view message » categorize

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
>

new topic     » goto parent     » topic index » view message » categorize

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

new topic     » goto parent     » topic index » view message » categorize

4. 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/

new topic     » goto parent     » topic index » view message » categorize

5. Re: Rob sequence ??

Thanks Rob
Bernie

new topic     » goto parent     » topic index » view message » categorize

6. Re: Rob sequence ??

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
>

new topic     » goto parent     » topic index » view message » categorize

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu