go ahead... be a heretic | |
PerlMonks |
Re^2: Choosing the right sort (Or: WUDsamatter?)by ikegami (Patriarch) |
on Apr 14, 2005 at 04:58 UTC ( [id://447649]=note: print w/replies, xml ) | Need Help?? |
Just to clarify Pustular Postulant, the OP must have called the functions in a void or scalar context. sort is optimized to do nothing in that situation, so the functions naive and orcish return instantly. Read more for confirmation of Pustular Postulant's results and confirmation that running the sorts in scalar context give results similar to those of the OP.
gives me
while
gives me
That's why it's important to show one's work :)
In Section
Meditations
|
|