develooper Front page | perl.perl5.porters | Postings from July 2004

Re: optimizing Short circuiting sort method based on [M]

From:
Nicholas Clark
Date:
July 13, 2004 12:34
Subject:
Re: optimizing Short circuiting sort method based on [M]
Message ID:
20040713193408.GG784@plum.flirble.org
On Tue, Jul 13, 2004 at 12:41:21PM +0100, Nicholas Clark wrote:
> I've removed the optimisation with change 23093
> Specifically I've disabled the code in op.c that adds the hint, as I believe
> that the hint is correct for the case of reverse sort ...

Which is now optimised in list context - change 23102

I'm not sure how worthwhile this really is, but I think it means that
there's no argument about what's the most efficient way to reverse sort
a list - don't write a reversed comparison function, simply write
reverse sort ....

Nicholas Clark



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About