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!  ==-----