 July 10, 2009 [SO] question on trivial function inlining Anyone
care to add more details? July 10, 2009 Re: [SO] question on
trivial function inlining Benjamin Shropshire: > Anyone care to
add more details?  I think DMD is currently unable to de-
virtualize virtual getters and setters. Virtual calls are a bit
slower by itself, but they also don't allow inlining, so
successive standard optimizations can't be done. So if such
accesses to the attribute is a virtual call and this happens in
a "hot" part of the code, then it may slow down your code
significantly. (if it happens in non-hot parts of the code it
has usually no effects. That's why Java Hot Spot doesn't need
optimize all your code to produce a very fast program anyway).
I have encouraged Frits van Bommel to improve the
devirtualization capabilities of LDC: Now LDC is able to do that
in few very simple situations, but most times the situation is
unchanged compared to DMD. Eventually LLVM will improve, so this
situation can improve by itself. But the fr