std.conv.to!string(float) Is too heavy
H. S. Teoh
hsteoh at quickfur.ath.cx
Thu Oct 14 00:33:06 UTC 2021
On Thu, Oct 14, 2021 at 12:04:52AM +0000, Hipreme via Digitalmars-d wrote:
> Humm I say module for representing libs, I have splitted my project in
> various libs, whose I call modules, so, it needs to link to each lib
> I'm using.
Hmm, I'd have thought LTO or -linkonce-templates ought to drop the
redundant templates once you link the libs. Is there any reason why it
> Although I have implemented most I need right now, the current problem
> is std.array.
> std.array increases 500Kb by only including it, so, for keeping my
> build times okay I have been basically ditching phobos...
If I were you I'd report a bug. The mere act of importing std.array
shouldn't pull in a whole bunch of dead weight if you don't even use
anything. There used to be more Phobos modules with this problem, but a
while back there was some effort to fix this. If std.array still has
this problem it should get looked into.
Once the bikeshed is up for painting, the rainbow won't suffice. -- Andrei Alexandrescu
More information about the Digitalmars-d