[ruby-talk:02567] Re: frozen behavior

From: Dave Thomas <Dave@...>
Date: 2000-04-21 23:50:37 UTC
List: ruby-talk #2567
matz@netlab.co.jp (Yukihiro Matsumoto) 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>

Or perhaps a command line argument to preallocate a honking big heap
might be useful. Wouldn't that make his programs even faster?

Dave

In This Thread

Prev Next