[ruby-talk:02566] Re: frozen behavior

From: matz@... (Yukihiro Matsumoto)
Date: 2000-04-21 23:17:30 UTC
List: ruby-talk #2566
Hi,

In message "[ruby-talk:02563] Re: frozen behavior"
    on 00/04/21, mengx@nielsenmedia.com <mengx@nielsenmedia.com> writes:

|For initial testing of code, I am not concerned about memory leaking.
|I want programm run fast. A while ago on the mailing list, I pointed
|out GC often causes slowdown as twice as GC.disabled. so I'd like to
|switch GC mode in different situations.

In case you take your own risk, try this:

% cat nogc.rb
GC.disable

% ruby -r nogc <whatever you want>

Make sure you have prenty memory when you stop GC.

							matz.

In This Thread