am i understanding the option being described here as manually forcing a pre-compile of .rb gems to .rbo cached to the gems directory (with caveats like no backtrace, ymmv)?<div><br></div><div>anybody working on a generic (system-wide or per-user or configurable?) cache of arbitrary .rb -> .rbo similar to how rubyinline works, where llvm intermediaries being built are automatically cached and invalidated when the associated/underlying .rb changes?</div>
<div><br></div><div>i would be interested to help if somebody is already in-flight with that, or take a stab it if nobody is -- lmk pls.</div><div><br></div><div>thx, n@<br><br><div class="gmail_quote">On Fri, May 20, 2011 at 12:07 PM, Mark Rada <span dir="ltr"><<a href="mailto:mrada@marketcircle.com">mrada@marketcircle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Rspec 2.6 works on the macruby nightly builds.<br>
<br>
Load times are partly due to rubygems being very slow on MacRuby and rspec being split into 4 gems (plus one other external gem).<br>
<br>
The other problem is that you have to JIT all the code at run time; you should be able to cut the load time in half by compiling rspec and its dependencies, but that has a couple of caveats right now, you can read more about it in the README for my rubygems plugin:<br>

<br>
        <a href="https://github.com/ferrous26/rubygems-compile" target="_blank">https://github.com/ferrous26/rubygems-compile</a><br>
<br>
Also, there are a couple of issues in the macruby trac related to slow gem loading time. You may wish to add a comment there about rspec.<br>
<font color="#888888"><br>
<br>
Mark Rada<br>
<a href="mailto:mrada@marketcircle.com">mrada@marketcircle.com</a><br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
On 2011-05-20, at 2:50 PM, Shannon Love wrote:<br>
<br>
> Christian,<br>
><br>
> Reverting to Rspec 2.5 allowed rspec to run under macruby (so far.) However, it is extremely slow compared to running under system ruby. it takes 10+ seconds to run just an empty test and pegs out one of my cores to do so.<br>

><br>
> Macruby should run faster than the system ruby 1.8.7 so I think I've still got a Macruby problem somewhere. Guess I need to do another post.<br>
><br>
> Thanks,<br>
> Shannon<br>
> _______________________________________________<br>
> MacRuby-devel mailing list<br>
> <a href="mailto:MacRuby-devel@lists.macosforge.org">MacRuby-devel@lists.macosforge.org</a><br>
> <a href="http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel" target="_blank">http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel</a><br>
<br>
_______________________________________________<br>
MacRuby-devel mailing list<br>
<a href="mailto:MacRuby-devel@lists.macosforge.org">MacRuby-devel@lists.macosforge.org</a><br>
<a href="http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel" target="_blank">http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel</a><br>
</div></div></blockquote></div><br></div>