I need more performance in a part of a program, coded in Ruby.
In Python i could use Psyco library (that compiles the code, or a part before the execution) to improve the perfromance, but i dont know if exists something like that in Ruby.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
earcar is right
You could update your ruby to 1.9.x, actually all versions of ruby from 1.9, comes with the YARV, that is much more faster than the old ruby interpreter, of course, this is assuming you have installed a previous version.
If you need more speed… you could write you code with c ruby extensions.
Here an example..
This would be much much faster, but you have to know to program in c.