On Friday, 2 January 2015 at 14:34:39 UTC, Martin Nowak wrote:
Would be nice to have @noinline, @forceinline and __builtin_expect.

It's rare to get measurable gains from __builtin_expect, and since there is no macro preprocessor in D, it's likely less verbose to just put the common case as the first branch since most compilers use that for static branch prediction (with the same effect on resulting machine code as __builtin_expect.)

Just my 2c.

Reply via email to