Thanks for the mamories

Of course. I expect to see a memory increase every time an object is added,
until the GC destroys it.

I was wondering if there are any practical or theoretical limits, or am I
only limited by available system resources?

Mark

···

-----Original Message-----
From: ts [mailto:decoux@moulon.inra.fr]
Sent: 17 July 2002 12:52
To: ruby-talk@ruby-lang.org
Cc: ruby-talk@ruby-lang.org
Subject: Re: error compiling ruby-libxml

“F” == “Firestone, Mark ← Technical Support”
mark.firestone@gossgraphic.co.uk> writes:

How much memory can I burn in ruby? Am I only limited by RAM + Swap on
the
box I am using. What are the penalities for using much memory?

Imagine that I write :

100000.times do
a = XML::SaxParser.new
GC.start
end

Do you accept to see the memory increase ?

Guy Decoux

NOTICE: This e-mail and any attachment(s) may contain confidential and
proprietary information of Goss International Corporation and/or its
subsidiaries and may be legally privileged. This e-mail is intended solely
for the addressee. If you are not the addressee, dissemination, copying or
other use of this e-mail or any of its content is strictly prohibited and
may be unlawful. If you are not the intended recipient please inform the
sender immediately and destroy the e-mail and any copies. All liability for
viruses is excluded to the fullest extent permitted by law. Any views
expressed in this message are those of the individual sender. No contract
may be construed by this e-mail.