This post originated from an RSS feed registered with Ruby Buzz
by James Tucker.
Original Post: Profiling learns you...
Feed Title: ragged blog » Ruby
Feed URL: http://blog.ra66i.org/catagories/informatics/programming/ruby/feed/
Feed Description: blog of raggisms and random musings, by raggi™
(by category: ruby)
This is sitting at the top of a pile of tests I wrote today in search of speeding up some areas of a program generating relatively short strings frequently.
##
# Already learned:
# * memoization is no good for short strings, even when using symbols to lookup data.
# * String#% is very slow
# * Array#to_s is faster [...]