in reply to Re: (ar0n) Re: Using shift() on sort() and syntactical funniness
in thread Using shift() on sort() and syntactical funniness
using sort to get the minimum value is far more expensive than it needs to be.While that's true, I think people overestimate the cost. For small lists, say up to a thousand items, it probably doesn't make much of a difference. It's like paying seven cents for a five cent candy bar. On the one hand, you're being overcharged by 40%. But a more useful way to look at it may be that you don't care because it's only two cents.
For another take on this, see here and here, for example.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 3: Using shift() on sort() and syntactical funniness
by tilly (Archbishop) on Apr 16, 2001 at 06:11 UTC | |
|
Re: Re: (ar0n) Re: Using shift() on sort() and syntactical funniness
by Fastolfe (Vicar) on Apr 16, 2001 at 20:43 UTC |