From: Stefan Schmiedl Date: 2004-12-28T21:46:48+09:00 Subject: Re: help on making ruby code faster On Tue, 28 Dec 2004 20:41:57 +0900, David Garamond wrote: > Benchmark.measure shows that, on my box, I can do around 2000-2500 of > roundtrip conversions per second, which is not too bad. But I wonder if > it can be made more efficient. The Ruby profiler shows the top 4 methods: I'm not sure on the effects it will have, but try extracting the constants from your often-called methods. You're repeatedly creating "the same objects" which might slow you down due to unnecessary garbage collection. s.