I’m working on a large rails app on my MacBook Pro (2.16 GHz Intel Core
Duo / 2GB RAM). OS X is 10.5.5.
On my machine, it takes about 30 seconds to load the rails environment
for our project. For my colleagues, who are mostly using Ubuntu, it’s
I’ve done some basic profiling and it looks as though the time is being
spent simply requiring files.
I made a very simple script and got my colleagues to run it:
t = Time.now] require 'rubygems' require 'activesupport' puts Time.now - s
They’re mostly getting sub-second performance, while on my machine it
takes over 3 seconds, just to load ActiveSupport.
Can anyone explain what is going on, and better, how to speed this up
for me? Or should I just live with this? Is this comparable to other
people’s experience on a Mac?
FYI, ruby -v says
ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-darwin9.5.0]
This is after I built ruby from source to try and resolve this,
following. It has made little difference, in fact if anything things
seem to be even slower since I switched my path to use /usr/local/bin
rather than the one installed with Leopard.
Thanks in advance,