[phobos] std.algorithm.sort slow as molasses

David Simcha dsimcha at gmail.com
Fri Jul 2 14:20:40 PDT 2010


I've figured out a major portion of the problem.  I can shave ~100 ms off if
I change the enforce in std.array.back(), which bounds checks even in
release mode and also prevents inlining of std.array.back(), to an assert.
It's an assert in std.array.front() already.  This is consistent with the
idea that arrays should be bounds checked only if asserts are enabled.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20100702/ae82615f/attachment.html>


More information about the phobos mailing list