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

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

Thread Previous | Thread Next
Nicholas Clark
July 13, 2004 12:34
Re: optimizing Short circuiting sort method based on [M]
Message ID:
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

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About