From: Shawn H Corey <shawnhco...@gmail.com>
> Jenda Krynicky wrote:
> > ST is an overkill if the extraction is simple. 
> > 
> > Especially if the number of items is fairly small.
> > 
> > Actually if the extraction is really simple and the extracted key is 
> > not so small, than ST may perform worse than an ordinary sort doing 
> > the extraction within the comparison block. The additional array 
> > creation and destruction and increased memory load will more than 
> > ofset the lower number of extractions.
> 
> Who cares?  Modern computers are big enough and fast enough to handle
> everything except editing movies.

OK. So because modern computers are fast enough to handle everything 
you'll employ an optimization pattern that actually hurts performance 
even though it complicates the code. Lovely.

Using ST while it's not needed is silly. Pattern or no pattern.


In this particular case the best solution is to silence the bogus 
warning.

Jenda
===== je...@krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to