std.partition is fucked
bearophile
bearophileHUGS at lycos.com
Fri May 15 15:46:03 PDT 2009
Sean Kelly:
>The built-in sort uses an internal stack rather than recursion, which makes its performance on a best-case dataset hard to beat.<
The built-in sort is snail slow, and its stack overflows if your array isn't small:
void main() {
auto a = new uint[0x8F_FFFF];
a.sort;
}
So the current built-in sort is bad, and it must be fixed or removed.
Bye,
bearophile
(Sorry for the answering delay, I was busy for about a week. Tons of posts to catch up!)
More information about the Digitalmars-d
mailing list