I bet you a nickel that if you replace a few key block loops (i.e. each, times, etc) with a vanilla while loop that you'll see a 10x speedup... I've seen some really huge performance hits on IR using blocks.
-Eric On Mon, Mar 10, 2008 at 6:06 PM, Michael Letterle < [EMAIL PROTECTED]> wrote: > I'll be posting it up (probably on RubyForge) once I get cleaned up a > bit (acknowledgments, rdoc stuff), if you want the raw stuff I can > email it straight to you. > > On Mon, Mar 10, 2008 at 5:33 PM, John Lam (DLR) <[EMAIL PROTECTED]> > wrote: > > Michael Letterle: > > > > > > > > > I'd just gotten done implementing DEFLATE in pure ruby, and figuring > > > there'd be a performance hit I was interested to see what it would > be. > > > On IronRuby (compiled in Release) it takes a full 16 seconds to > > > decompress a ~1KB file... in CRuby it's less then a second. An > ~800KB > > > file takes 42 seconds in CRuby, while IronRuby takes a whopping... > > > well I don't know, I killed it after it was running for about a half > > > hour and using upwards of 100MB of memory! > > > > > > Now this is just a straight port of "puff.c" from the zlib library, > so > > > it's certainly not optimized for speed in any way, but the difference > > > in runtimes really struck me. > > > > > > I suppose at the very least we have a good stress test for rbx ;) > Just > > > thought I'd share. > > > > Cool :) Can you send along the source code for your implementation so > we can investigate? > > > > Thanks > > -John > > > > _______________________________________________ > > Ironruby-core mailing list > > [email protected] > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > -- > Michael Letterle > [Polymath Prokrammer] > http://blog.prokrams.com > _______________________________________________ > Ironruby-core mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/ironruby-core >
_______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core
