From: Ben Johnson Date: 2006-07-15T05:36:43+09:00 Subject: Re: How to speed up ruby and make it as fast as possible On Jul 14, 2006, at 2:59 PM, snacktime wrote: > On 7/14/06, khaines@enigo.com wrote: >> On Sat, 15 Jul 2006, snacktime wrote: >> >> > On 7/13/06, Ben Johnson wrote: >> >> >> >> I have a server that is dedicated solely for running a single ruby >> >> application. Is there a ruby configuration file that I can >> change to >> >> help speed ruby up and take as much resources as it needs? >> Basically >> >> make sure there is no memory limit, processing limit, and give >> it the >> >> highest priority process as possible. Also is there anything >> else I >> >> can do to get the most speed out of ruby? >> >> >> >> Thanks for your help. >> > >> > Asking your question in such a general way is bound to produce more >> > arguments (as you can see) then actual help. If you post some >> > information about what your application does, and how it's >> performing >> > now, you will probably get more useful answers. You also might >> want >> > to start a new thread with a more specific subject. >> >> The problem is that there really is no answer for the question. Any >> answers are specific to one's operating system, and those OS tuning >> answers don't really have anything specifically to do with Ruby. >> >> >> Kirk Haines > > There could be any number of things he could do to improve performance > that have everything to do with how he coded it, which would be ruby > specific. Two applications written in the same language to perform > the same function can have very different performance. And not to > pick on the OP, but how the question was asked leads me to believe > that he might not have a lot of programming experience, and thus it's > even more likely that writing his application differently could > increase performance. > > > Chris > 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. My application is a very complex application, since it is so complex my company and I chose rails to do this in, because the MVC design pattern seemed to fit best with the problem we were trying to solve. Doing complex applications in rails doesn't seem so complex and we ended up completing the application in 1/4 of the allotted time. Lastly, the reason I asked this question was because I have a pretty intense algorithm that takes about .7 seconds to complete. .7 seconds is not that long, but with this application every millisecond is precious. Therefore, I simply was not sure if there was something I could do to make it a little faster. That's all.