From: Kirk Haines Date: 2010-06-22T01:58:17+09:00 Subject: [ruby-core:30844] Re: [Bug #2553] Fix pthreads slowness by eliminating unnecessary sigprocmask calls On Sat, Jun 19, 2010 at 12:54 PM, Patrick Mohr wrote: > Issue #2553 has been updated by Patrick Mohr. > > >> I thought this was fixed in 1.8.7 >> Could you verify which branches (1.8.8, 1.8.7, 1.8.6) still show this problem? > > I just ran the same tests on 1.8.6 and 1.8.7. �It's still not fixed. �I'm not sure where the source code for 1.8.8 is so I didn't test it. > > The build information and test results are below. �I didn't test 1.8.7 with --disable-ucontext because that configure flag doesn't seem to exist anymore. > > Admittedly, ruby 1.8.7 is much faster than 1.8.6, but 1.8.7 still has this bug. http://redmine.ruby-lang.org/issues/show/2553 I did fix this on 1.8.6: r27999 ./configure --enable-pthread # time ./ruby -ve '1_000_000.times { x = 2 ** 256 }' ruby 1.8.6 (2010-06-12 patchlevel 415) [x86_64-linux] real 0m3.006s user 0m2.880s sys 0m0.128s ./configure --enable-pthread --disable-ucontext # time ./ruby -ve '1_000_000.times { x = 2 ** 256 }' ruby 1.8.6 (2010-06-12 patchlevel 415) [x86_64-linux] real 0m2.733s user 0m2.728s sys 0m0.004s Kirk Haines