On Wed, Jun 20, 2012 at 4:43 PM, Jan E. <[email protected]> wrote: > After having read this list for a while, I wonder why some of you put so > much weight on speed optimizations.
I can't say I have observed an _obsession_ with things like these. Maybe it's just the fun or that it is so easy to Benchmark. :-) > I'm not talking about big things > that really make sense but small stuff like "Don't use symbols, they > can't be garbage collected", That is certainly a stupid general rule because in some situations this is exactly what you want: identifiers which do not need to be created and which are not GC'ed. > "Don't concatenate strings, use string > interpolation instead", "Don't use Enumerable#inject to build up > objects" etc. etc. As I said, I don't have made the same observation you apparently have made. I do not read most of the traffic here but if it really was obsessive I think I would have noticed. Strange how perceptions can be so different. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
