Require jdbc_adapter is very slow

require 'rubygems
'require ‘jdbc_adapter’

The above script needs 6 seconds to finish …

Is this expected ?

Regards
Roger


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On May 13, 2010, at 12:55 PM, Roger G. wrote:

require 'rubygems
'require ‘jdbc_adapter’

The above script needs 6 seconds to finish …

Is this expected ?

Regards
Roger

rubygems is notoriously slow to load on JRuby. See
http://blog.headius.com/2010/03/jruby-startup-time-tips.html for some
tips to improve startup time.

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Ok,

using “-d32” helped a lot. What I still do not understand is why
require “jdbc_adapter” is so much slower than “require active_record”.

Regards
Roger

Am 13.05.2010 um 21:12 schrieb Roger G.:

Am 13.05.2010 um 20:59 schrieb Hirotsugu A.:


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

Sorry, my first post missed some details.

The problem is that 'require ‘jdbc_adapter’ is very slow (> 5 seconds).

Regards
Roger

BTW: I’m using jdbc adapter 0.9.6, jruby 1.5 and Rails 3 beta 3

Am 13.05.2010 um 20:59 schrieb Hirotsugu A.:

Regards
Roger

rubygems is notoriously slow to load on JRuby. See http://blog.headius.com/2010/03/jruby-startup-time-tips.html
for some tips to improve startup time.

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

You might have found an interesting bottleneck. Can you provide the
logging output for the load process please? Pass
-J-Djruby.debug.loadService.timing=true to JRuby and do the require
again.

On Thu, May 13, 2010 at 7:34 PM, Roger G. [email protected] wrote:

Sorry, my first post missed some details.

Roger

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