Most performant way of converting int to string

Jakob Ovrum via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Dec 23 03:46:37 PST 2015


On Wednesday, 23 December 2015 at 11:21:32 UTC, Jakob Ovrum wrote:
> Dynamic memory allocation is expensive. If the string is 
> short-lived, allocate it on the stack:

See also std.conv.toChars[1] for stringifying lazily/on-demand.

http://dlang.org/phobos/std_conv#toChars



More information about the Digitalmars-d-learn mailing list