There are several ruby performance patches, like the falcon patches, that may improve the performace of your application.
I use rvm and was pleased to learn that rvm supports compiling ruby with several of these performance patches. Using rvm with the railsexpress patch, I saw a 20% reduction in the time required to run the test suite for a large rails project.
Here is how you can install ruby with the railexpress patch using rvm.
First make sure you have the latest version of rvm.
rvm get head
Next install ruby 1.9.3 with the railsexpress patch. At this step rvm may have dependencies that require installation.
rvm install 1.9.3 --patch railsexpress
The railsexpress patch contains the following patches.
- 01-fix-make-clean.patch
- 02-railsbench-gc.patch
- 03-display-more-detailed-stack-trace.patch
- 04-fork-support-for-gc-logging.patch
- 05-track-live-dataset-size.patch
- 06-webrick_204_304_keep_alive_fix.patch
- 07-export-a-few-more-symbols-for-ruby-prof.patch
- 08-thread-variables.patch
- 09-faster-loading.patch
- 10-falcon-st-opt.patch
- 11-falcon-sparse-array.patch
- 12-falcon-array-queue.patch
- 13-railsbench-gc-fixes.patch