Major performance problem with std.array.front()
Adam D. Ruppe
destructionator at gmail.com
Fri Mar 7 07:24:47 PST 2014
On Friday, 7 March 2014 at 14:44:43 UTC, Kagamin wrote:
> Alternatively for small methods you can rely on inlining, which
> dereferences the argument.
Yeah, that's usually the way to go, inlining can also avoid
pushing other arguments to the stack on 32 bit which is a big win
too. But you can't inline asm function, and checking the overflow
flag needs asm. (or a compiler intrinsic.)
For the library typedef case too, this means wrapping any
function that returns a struct too which is annoying if nothing
else.
More information about the Digitalmars-d
mailing list