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.

Reply via email to