From: "Gonçalo Silva" Date: 2011-05-24T23:59:42+09:00 Subject: [ruby-core:36430] Re: GC thought --bcaec520ef2f6d3f4604a406d676 Content-Type: text/plain; charset=ISO-8859-1 1.9.3 already sweeps lazily. --- http://twitter.com/goncalossilva On Tue, May 24, 2011 at 15:57, Roger Pack wrote: > Hello all. > Had a thought for improving ruby's GC the other day. > > Currently it's > > *stop world* > mark > sweep > *start world* > > suggestion: > > *stop world* > mark > sweep a little bit > *start world* > finish sweep in another thread. > > (Obviously there's be some ramifications, like having to add some > locks here or there, and doing some thread joins, but hopefully that > wouldn't cost too much cpu-wise). > Thoughts? > -roger- > > --bcaec520ef2f6d3f4604a406d676 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 1.9.3 already sweeps lazily.

---
http://twitter.com/goncalossi= lva


On Tue, May 24, 2011 at 15:57, Roger Pac= k <rogerdpack= 2@gmail.com> wrote:
Hello all.
Had a thought for improving ruby's GC the other day.

Currently it's

*stop world*
mark
sweep
*start world*

suggestion:

*stop world*
mark
sweep a little bit
*start world*
finish sweep in another thread.

(Obviously there's be some ramifications, like having to add some
locks here or there, and doing some thread joins, but hopefully that
wouldn't cost too much cpu-wise).
Thoughts?
-roger-


--bcaec520ef2f6d3f4604a406d676--