[#4567] Re: What's the biggest Ruby development? — Aleksi Niemel<aleksi.niemela@...>

Dave said:

18 messages 2000/08/23
[#4568] Q's on Marshal — Robert Feldt <feldt@...> 2000/08/23

[#4580] RubyUnit testcase run for different init params? — Robert Feldt <feldt@...> 2000/08/25

[#4584] Re: RubyUnit testcase run for different init params? — Dave Thomas <Dave@...> 2000/08/25

Robert Feldt <feldt@ce.chalmers.se> writes:

[#4623] Re: RubyUnit testcase run for different init params? — Robert Feldt <feldt@...> 2000/08/28

On Sat, 26 Aug 2000, Dave Thomas wrote:

[#4652] Andy and Dave's European Tour 2000 — Dave Thomas <Dave@...>

24 messages 2000/08/30
[#4653] Re: Andy and Dave's European Tour 2000 — matz@... (Yukihiro Matsumoto) 2000/08/30

Hi,

[#4657] Ruby tutorials for newbie — Kevin Liang <kevin@...> 2000/08/30

Hi,

[ruby-talk:04440] Re: Real world performance problems

From: Dave Thomas <Dave@...>
Date: 2000-08-11 21:43:20 UTC
List: ruby-talk #4440
Aleksi Niemel<aleksi.niemela@cinnober.com> writes:

> But I started to think if there has been any research (probably has :) of
> hybrid of reference counting and pure GCing. So that we always release
> objects when their reference count goes 0, and loops are resolved by normal
> GC. For example the root problem for this thread would have enormous
> advantage, as once used intermediate objects could be reused, and they
> wouldn't have to wait until next mark&sweep.

I've read about hierarchical garbage collection, where objects start
out in a kind of short-term pool, where m&s is very fast. As they age,
they get moved out to a bigger pool.  You collect in the small pool
often, and in the big pool less frequently. The idea is that most
objects are short-lived, and hence never make it to the big pool.

There's also been some work in Java on analyzing program flow to
determine if objects can ever be referenced from outside the current
stack frame. If not, they're allocated on the stack directly, not on
the heap, and hence never have to be garbage collected.

I'd really rather not see us moving to reference counting--one of the
joys of Ruby is the ease with which extensions are written.


Regards


Dave

In This Thread

Prev Next