[phobos] phobos commit, revision 2305

Walter Bright walter at digitalmars.com
Tue Jan 11 03:08:23 PST 2011



Andrei Alexandrescu wrote:
> Okay, though I wonder whether that's even measurable. The bulk is the 
> string comparison in most cases.

cmp is so heavily used, yes it's worth it, especially since it comes for 
free.

>
> I think we could and probably should abstract cmp3way() in 
> std.algorithm as a template that is specialized for various types to 
> work as efficiently as possible.
>

I can see at a glance what the code does, but cmp3way() I'd have to look 
up every time.


More information about the phobos mailing list