in reply to Re: Re: Efficiently sorting array by non-alpha strings
in thread Efficiently sorting array by non-alpha strings

Highly suspicious results. You didn't publish source, but I have a hunch your code has %h lexical to the main program. This will make the sort a linear pass (no sorting happens). Try again with our %h.

Abigail

  • Comment on Re: Efficiently sorting array by non-alpha strings

Replies are listed 'Best First'.
Re: Re: Efficiently sorting array by non-alpha strings
by borisz (Canon) on Feb 20, 2004 at 17:11 UTC
    You are right, very impressive abigail-ii found my bug without any source. Here the corrected results:
    Rate knowmad browseruk borisz pirate abigail knowmad 22.1/s -- -49% -72% -80% -93% browseruk 43.0/s 94% -- -45% -62% -86% borisz 78.5/s 255% 83% -- -30% -74% pirate 112/s 407% 161% 43% -- -64% abigail 308/s 1291% 616% 292% 174% --
    Boris