In message "[ruby-talk:01463] GC performance"
on 00/02/16, mengx / nielsenmedia.com <mengx / nielsenmedia.com> writes:
|I found the garbage collection slows down my program significantly.
|I disabled the GC and the program speed increased by a factor of two.
|Is it normal ? How does GC work in Ruby ? like Java?
Ruby uses conservative mark&sweep GC. The cost of GC may be
significant, if many objects alive and a few object dead through the
process.
matz.