I've got a ruby script which takes about 30 seconds to startup. It takes that much because it tries to load all libraries and stuff.
When I do ruby.exe -v
it's instant.
I don't want to touch the original ruby script, which is not written by me.
What are the tricks to speed this process up?
I need to do this under Windows or Cygwin.
UPDATE :
I presume the script uses rubygems? (It'll say require "rubygems" if so)
You could try installing minigems (gem install minigems) and then use minigems instead of rubygems - should speed things up a little.