String compare in words?

qznc via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 29 13:45:49 PDT 2016


On Sunday, 29 May 2016 at 17:42:48 UTC, Era Scarecrow wrote:
>  Worse I'm not sure if the code generation already does that 
> and possibly does a better job than what we could do by hand...

Not with dmd v2.071.0 or ldc 0.17.1.

At least not in all the variations I tried to trick them with, 
like copying into fixed-size array. Well, they did insert a 
memcmp and libc is probably optimized like that, but they copied 
data first, which is unnecessary.


More information about the Digitalmars-d-learn mailing list