Six Quick Optimization Tips for the Ruby Interpreter

Courtesy Ruby Inside  Thu, 07/10/2008 - 18:33

Ilya Grigorik of Igvita has put together a great article called 6 Optimization Tips for Ruby MRI .

In it, he walks through six different things you can do to improve the performance of your code when running on the regular Ruby interpreter (MRI).

For example, interpolation is quicker than concatenation when working with strings, destructive operations prevent wasteful object duplication, and hand-written blocks are a lot faster than Symbol#to_proc.

And.. metaprogramming, of course, comes in for...


 

More related items

QaFoo.com Blog: Howto write a Rule for PHPMD
On the QaFoo blog today Manuel Pichler has written up a guide to help you write a custom rule to use with the PHP Mess Detector (PHPMD) as extended from some of the current rules (it's...

Ibuildings techPortal: DPCRadio: The Cake is a Lie
On the Ibuildings techPortal today they've posted the latest episode of their recording series from last year's Dutch PHP Conference (DPCRadio) - Sebastian Bergmann's talk The Cake is a Lie....

Semi-implicit batched remote code execution as staging
Oleg Kiselyov has just posted another amazing work: Semi-implicit batched remote code execution as staging. Batching several remote-procedure or remote-object operations into one request...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com