Optimizing Ruby

Anyone know of a Ruby book with a chapter devoted to optizing Ruby? Or a good article online? Or an organized collection of tips?

A recent thread of suggestions for improving Ruby performance illustrated to me that there are many ways to optimize.

Thanks.

I'd be interested in such a collection too. Now that I've learned to
write nice programs with Ruby, it would be neat to learn more on how I
can offset the performance disadvantage of Ruby being fully
interpreted.
Apart from general algorhitmic optimization I've been toying with the
idea of partial evaluation. That however requires alterations to the
Ruby interpreter and a specific knowledge about the program domain, so
it may just stay as a candidate project for quite a while.

ยทยทยท

On Sat, 17 Jul 2004 10:38:33 +0900, Randy Lawrence <jm@zzzzzzzzzzzz.com> wrote:

Anyone know of a Ruby book with a chapter devoted to optizing Ruby? Or
a good article online? Or an organized collection of tips?

A recent thread of suggestions for improving Ruby performance
illustrated to me that there are many ways to optimize.

Thanks.

"Randy Lawrence" <jm@zzzzzzzzzzzz.com> schrieb im Newsbeitrag
news:sm%Jc.1979$9f2.405@newssvr15.news.prodigy.com...

Anyone know of a Ruby book with a chapter devoted to optizing Ruby? Or
a good article online? Or an organized collection of tips?

A recent thread of suggestions for improving Ruby performance
illustrated to me that there are many ways to optimize.

I don't know such thing, but there's the general advice to minimize object
creation. That has typically some overhead (memory allocation, garbage
collector registration etc.). Apart from that general performance advices
apply to Ruby the same way as to other languages (i.e. appropriate
algorithms etc.)

Kind regards

    robert

In "Ruby Developer's Guide" published by Syngress you will find a chapter "Profiling and Performance Tuning" (about 50 pages).

Szymon