X[]==Y[] is 7X slower than it should be -- why?

Sean Kelly sean at invisibleduck.org
Fri Jun 20 16:13:54 PDT 2008


== Quote from Jarrett Billingsley (kb3ctd2 at yahoo.com)'s article
> "Sean Kelly" <sean at invisibleduck.org> wrote in message
> news:g3gtvk$1tm7$1 at digitalmars.com...
> >
> > Done :p
> >
> > http://dsource.org/projects/tango/changeset/3651
> In _adCmp,
> if (a1.ptr == a2.ptr)
>     return 0;
> erm, that's not right at all.  Two slices with the same pointer and
> different lengths.

Darnit, you're right.  Good catch.


Sean



More information about the Digitalmars-d mailing list