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.
_______________________________________________ phobos mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/phobos
