Jay Jruby wrote:
Hi rubyers, this is my first post here.
Ok, I might not have the best machine in the World (Intel 2.66Mhz 1 CPU)
It’s a long time since I used a machine as slow as 2.66MHz. Even the
original IBM PC-XT was 4.77MHz
but I am doing some
“profiling” and realized that a “require ‘activerecord’” is taking about
1 second to perform.
I’m using ERuby, I’ve tried FastEruby/Erubis but without any noticeable
Any idea why this particular class is so heavy to load?
Look at its dependencies. e.g. try “require ‘activesupport’” before
“require ‘activerecord’” and time those two separately.
You could also try it without rubygems, e.g. instead of require
This is also a good way to find out what gem dependencies you have.