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

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

Thread Previous | Thread Next
From:
david nicol
Date:
July 15, 2004 20:58
Subject:
Re: optimizing Short circuiting sort method based on [M]
Message ID:
1089950286.1413.44.camel@plaza.davidnicol.com
On Tue, 2004-07-13 at 14:34, Nicholas Clark wrote:
> 
> 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

I wonder if this could be turned into yet another context -- "reverse
list" context -- causing any returning array to get reversed on the
stack before being returned, in a lighter way than calling the reverse
function.  Just another idea.





Thread Previous | Thread Next


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