Efficient string concatenation?

Justin Whear justin at economicmodeling.com
Fri Nov 15 14:32:55 PST 2013


On Fri, 15 Nov 2013 22:30:35 +0000, Justin Whear wrote:

> std.array has an Appender type that can be used to build up a string (or
> any other array type) efficiently.

Oh, and if you have an idea of how large the result might grow, be sure 
to use the reserve() method on the appender.


More information about the Digitalmars-d-learn mailing list