!string(float) Is too heavy

IGotD- nise at
Tue Oct 12 19:08:44 UTC 2021

On Tuesday, 12 October 2021 at 18:06:53 UTC, Hipreme wrote:
> Lot of people has implemented float to string conversion 
> without requiring 500KB.

Floats to string is of course more complicated that integers but 
500KB is ridiculous. It should rather be something like 10-20 KB.

It's likely it is a combination of that the optimizer/linker is 
unable to remove unused functions. Also that imports usually 
imports more stuff, even if it is just a tiny function from 
another import.

It's like a box of cables, you just want one cable but when you 
pull out one cable you get the entire ball of cables.

More information about the Digitalmars-d mailing list