Trans
10/29/2008 4:19:00 PM
On Oct 29, 8:51=A0am, Matt Wynne <m...@mattwynne.net> wrote:
> Hi,
>
> 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
> much faster.
>
> 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:
>
> =A0 =A0 t =3D Time.now]
> =A0 =A0 require 'rubygems'
> =A0 =A0 require 'activesupport'
> =A0 =A0 puts Time.now - s
>
> They're mostly getting sub-second performance, while on my machine it
> takes over 3 seconds, just to load ActiveSupport.
ActiveSupport is pretty big and goes about things in a very round
about way. So it is a slow to load regardless. However, 3 seconds does
seem overly slow.
Some comparison could help evaluate the problem. Try installing facets
(gem install facets) and time how long it take to require 'facets'.
That's another big library, but simpler in design. If that take more
than a second than something is seriously wrong.
T.