"ko1 (Koichi Sasada)" <redmine / ruby-lang.org> wrote:
> Eric, can this patch work fine on current trunk?
> ... which patch should I use?

Yes, I just tested final-queue.patch with current trunk (r36217)
and it works.

The .gitignore hunk in the patch can be ignored, everything
else creates a new file and doesn't conflict.

This is Richard's patch, btw.  I'm not sure if Richard still
pays attention to Ruby (haven't seen any activity from him in
a while).

push/pop are still significantly faster on current trunk with the
queue.rb benchmark:

                     user     system      total        real
Q#push           0.640000   0.000000   0.640000 (  0.642801)
T#push           0.200000   0.000000   0.200000 (  0.197539)
Q#pop            1.390000   0.000000   1.390000 (  1.393139)
T#pop            0.230000   0.000000   0.230000 (  0.228802)

(https://raw.github.com/panaggio/rubysoc-2010/master/benchmarks/queue.rb)