On inlining in D libraries

monarch_dodra monarchdodra at gmail.com
Sun Sep 15 11:43:13 PDT 2013


On Monday, 9 September 2013 at 13:01:51 UTC, Dmitry Olshansky 
wrote:
> [...]

I'm "resurrecting" this thread, because I also noticed that 
"std.ascii" is "victim" to this. Almost all of the function in 
there are trivially inline-able, but because they are not 
templates, aren't.

By simply making them templates, I can improve the performance of 
functions such as "split on ascii white" by 2 to 3 (!).

This is a damn shame.


More information about the Digitalmars-d mailing list