On Thursday, 17 September 2015 at 10:33:44 UTC, John Colvin wrote:
Some initial bloat is expected, format is pretty big (although twice as big is a lot, unless your original code was quite small?).
It was in a test program. Only a few lines. But it would still add a lot of bloat in a program that uses it in different modules, wouldn't it?
The extra bloat per call is likely due to inlining. I would hope that dmd would spot consecutive inlining of the same function and merge them, but perhaps it doesn't.
You could certainly make a less feature complete implementation of format that is smaller.
Don't know if it's worth the trouble.
Have you tried with ldc or gdc. In particular, have you tried using ldc with --gc-sections on linux?
Not yet. GDC and LDC always lag behind (this time considerably), so I'm usually stuck with DMD for development.