On inlining in D libraries
Jacob Carlborg
doob at me.com
Tue Sep 10 00:37:47 PDT 2013
On 2013-09-10 06:02, Jonathan M Davis wrote:
> The compiler should definitely be able to look at non-templated functions and
> inline them where appropriate. I expect that it will really hurt performance
> in general if it doesn't - especially with stuff like getters or setters. I
> don't know what the best way would be for the compiler to go about doing that
> and have no idea how the inliner currently works, but I don't think that
> there's any question that it needs to.
I agree.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list