From: David Garamond Date: 2004-12-28T22:39:41+09:00 Subject: Re: help on making ruby code faster Robert Klemme wrote: > The general rule is that object creation is quite expensive. So it's > always good to try to avoid it if possible. I applied your suggestions below and it got slightly worse. So I guess object creation has been pretty optimized in Ruby? :-) > You can save the downcase if you add values for lower and upper case > characters to @@rd36 (if it's an array, maybe make it a hash). I do get slightly better performance by making @@rd36 an array instead of a hash (originally it's a hash). Regards, dave