What are best practices around toString?

Salih Dincer salihdb at hotmail.com
Sun Oct 2 09:04:41 UTC 2022


On Saturday, 1 October 2022 at 17:50:54 UTC, tsbockman wrote:
> but unless it is provided with a good estimate of the final
> length at the beginning, it will allocate several times for
> a longer string, and the final buffer will be, on average, 50% 
> larger than needed.

I see, it's smart!

SDB at 79




More information about the Digitalmars-d-learn mailing list