From: Sam Roberts Date: 2006-05-23T05:36:44+09:00 Subject: Re: Zed and Luis drop the bomb on Ruby's poor performance Quoting SimonKroeger@gmx.de, on Tue, May 23, 2006 at 05:12:14AM +0900: > Hi Sam! Hi Simon, > Conclusion: method calls in general and object creation are the > bottlenecks in this (very, very) simple cases. My conclusion as well. My real app basically runs over all the lines in a set of files using IO#each, runs a regex, turns the matched strings into objects, so is pretty much dominated by these simple cases (I think, and profile suggests). Your !-optimizations are interesting. I'll look back at my low-level code. Maybe by changing my "name = $2.upcase" statements to "name = $2; name.upcase!" I can get some good speedups. Depends on whether I need to keep both versions around, I'll have to construct some test cases and profile them. Thanks, Sam