From: Sean Russell Date: 2001-11-07T23:01:29+09:00 Subject: [ruby-talk:24515] Re: Ruby Performance (was Re: Joys of eval) Ryan Leavengood wrote: > string using built-in methods like String#count, tr and squeeze. I > thought that if I was clever and used String#each_byte to just iterate > through the String once and do my counting, it would be faster. This > was wrong. It ended up being quite a bit slower (and didn't work Furthermore, "yield" (used by "each") is 1.5 to 5 times slower than a regular method call. --- SER -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! Check out our new Unlimited Server. No Download or Time Limits! -----== Over 80,000 Newsgroups - 19 Different Servers! ==-----