|
Prev: [ANN] threadify-0.0.1
Next: Problem with unpack
From: fedzor on 1 Jul 2008 16:19 Thank you! This gem pretty much makes my life simpler, and will continue to make it simpler! (stdlib please?) ~ ari
From: Martin DeMello on 1 Jul 2008 17:00 On Tue, Jul 1, 2008 at 1:04 PM, ara howard <ara.t.howard(a)gmail.com> wrote: > > URI > http://rubyforge.org/projects/codeforpeople I only see a tgz link which redirects me to http://rubyforge.rubyuser.de/codeforpeople/threadify-0.0.1.tgz which in turn 404s martin
From: Charles Oliver Nutter on 1 Jul 2008 17:02 Martin DeMello wrote: > On Tue, Jul 1, 2008 at 1:04 PM, ara howard <ara.t.howard(a)gmail.com> wrote: >> URI >> http://rubyforge.org/projects/codeforpeople > > I only see a tgz link which redirects me to > > http://rubyforge.rubyuser.de/codeforpeople/threadify-0.0.1.tgz > > which in turn 404s mirror delay. check codeforpeople svn, it's only one file. - Charlie
From: Charles Oliver Nutter on 1 Jul 2008 17:04 ara howard wrote: > > > this one's for you charlie ;-) Appears to work just dandy under JRuby: ➔ time jruby --server -rthreadify -e "nums = *(1..35); def fib(n); if n < 2; return n; else; return fib(n - 1) + fib(n - 2); end; end; nums.each {|i| p fib(i)}" ... real 0m11.889s user 0m11.733s sys 0m0.188s ~/NetBeansProjects/jruby ➔ time jruby --server -rthreadify -e "nums = *(1..35); def fib(n); if n < 2; return n; else; return fib(n - 1) + fib(n - 2); end; end; nums.threadify {|i| p fib(i)}" ... real 0m8.213s user 0m12.722s sys 0m0.178s (One thread on my system consumes roughly 65-70% CPU, which explains why full CPU on both cores doesn't double performance here) I also found some weird bug where Thread#kill/exit from within the thread interacts weirdly with join happening outside, and never terminates. Fixing that now. - Cahrlie
From: Martin DeMello on 1 Jul 2008 17:11
On Tue, Jul 1, 2008 at 2:02 PM, Charles Oliver Nutter <charles.nutter(a)sun.com> wrote: > mirror delay. check codeforpeople svn, it's only one file. thanks, gotit. will also install the gem when it propagates, just to keep my system informed :) m. |