String compare in words?

Stefan Koch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 29 14:53:30 PDT 2016


On Sunday, 29 May 2016 at 20:51:19 UTC, Seb wrote:
> On Sunday, 29 May 2016 at 20:40:52 UTC, qznc wrote:
>> [...]
>
> Isn't that something that the compiler should optimize for you 
> when you do an equality comparison?
> Is it really faster than ldc (with all optimzations turned on)?

It can be faster because of inlining.
memcmp is a runtime call.


More information about the Digitalmars-d-learn mailing list