From: Joel VanderWerf Date: 2009-10-21T09:57:35+09:00 Subject: Re: Loading program that uses gems on network share is incredibly slow nikolai.weibull@gmail.com wrote: > Loading program that uses gems on network share is incredibly slow. > Ruby�s need, due to Rubygems, to search a long list of directories for > a file to load due to a require can become very tedious on, for > example, an SMB share. One option is to avoid using rubygems on the client systems. The crown[1] tool I developed collects gem files (including dependencies) in a set of lib and bin dirs. Just add those dirs (still on the file share) to the client-side RUBYLIB and PATH env vars. Whenever you gem update, you would need to recreate the "crown", as well, but no need to touch the clients. This is experimental, of course, so YMMV, especially if there is a gem that does something really non-standard to access its libs. I've been using it in production, but have tested it only on the gems I use (web stack with sinatra, thin, sequel). [1] http://github.com/vjoel/crown -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407