I have a Ruby CGI script that I use in my web application. The trouble is, the script is used very often and it is quite big – I load quite a few gems. This results in a long startup time. I know that Ruby 1.9.3 improved startup time, but this is not enough.
What are some of the ways to improve startup time?
Modify your script/application to be a Rack application. Once you have done that, you will be able to use Rack’s handlers for the faster FCGI or SCGI or other fast CGI handlers.