Project: better partition

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sun May 22 14:43:34 PDT 2016


On 05/22/2016 05:33 PM, Xinok wrote:
> The idea is simple: alternate the check for equality in hopes of
> skipping some equal elements. Unfortunately, this modification requires
> a little more work and TWO sentinels at either end of the range because
> it may skip over the first.

So that's slower than what I have in my slides. Why not use that? -- Andrei


More information about the Digitalmars-d mailing list