From: Kev Jackson Date: 2006-07-17T11:37:11+09:00 Subject: Re: How to speed up ruby and make it as fast as possible > My original post was to get a simple yes or no answer to my > questions. I did not expect 30 responses to it. Anyways, it was > just a question to see if there was anything I could do. > > To correct Chris, I have plenty of programming experience. I am new > to ruby and this is my first application I have written in ruby, > which is why I was asking if there was a ruby configuration file. > Many languages have configuration files and I wasn't sure if ruby > had the same. > For Rails, I think there are some configuration options you can fiddle with - but as you know, twiddling the knobs on the front of the server (so to speak) is less likely to produce a significant gain compared to re-writing the algorithm in a lower-level language, or if the algorithm is wasteful, tuning that. I'd suggest looking at the RailsExpress [1] website - dedicated to tuning Rails apps, and/or posting time critical pieces of code here (if that option is available due to confidentiality restrictions). Many of the people here will have a lot more experience of ruby than yourself (as you mention that this is your first ruby application), and may see a way of squeezing some extra performance out of the code without a C re- write. I discovered when I first started ruby that there are many ways to achieve the same goal, but some of them use a hell of a lot less processing power than the others - an example was on this list just a couple of weeks ago regarding Blocks and Procs [2]. Hope these suggestions help. Thanks Kev [1] - www.railsexpress.de/blog [2] - http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/199634 -- "To be governed is to be watched over, inspected, spied on, directed, legislated..." - Pierre-Joseph Proudhon