On Sat, May 17, 2008 at 4:21 PM, Charles Oliver N.
[email protected] wrote:
warmup time. It’s fairly typical for short runs to be slower than MRI.
Thanks for your answer. That makes sense.
Is also took over 20 seconds for the rails environment to load (before
the first test was run) while it took less than 10 seconds with MRI.
Startup should see a marked improvement in 1.1.2. How long does it take e.h.
jruby -e “puts 1” to run for you? That time should be halved in 1.1.2.
I think its mainly the time to process the Rails initialization.
Starting small processes, like gem, was reasonably fast.
There are definitely some bottlenecks running Rails we have not yet found,
so we’re looking for folks like you to help us narrow it down. Rails is a
complicated framework that really requires an implementation be fast
throughout, so the fact that we’re not markedly faster than MRI all the time
means there’s something we’ve missed.
One interesting thing about our app is that we are using the desert
plugin.
http://github.com/pivotal/desert
Desert is an Appable Plugins replacement. It redefines Rails’ const
missing handling, in the Dependencies module, to load all files in all
plugins that match the constant.
It also allows plugins to have their own app directory with models,
views, and controllers. It also allows plugins to have plugin
dependencies and gives plugins the oppornutity to override its
parents’ modules.
For example, if User is called for the first time, Desert causes rails
to load user.rb on all of the plugin and application load paths.
This causes more File.expand_path and load to be called than your
typical Rails app. I mention that because its been known to cause
slowness under the MRI in certain situations, and its my initial guess
as to what may be happening.
We’re ready to work with you to make things as fast as possible though
Thanks, unfortunately I don’t think we’re ready to jump to using JRuby
for this particular project.
The main reason is we would still have the same scalability issues
with JRuby, even though it would provide a performance enhancement.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email