Post about comparing C, C++ and D performance with a real world project

Iain Buclaw ibuclaw at gdcproject.org
Thu Dec 7 23:07:45 UTC 2017


On 7 December 2017 at 23:39, Daniel Kozak <kozzi11 at gmail.com> wrote:
> The other slowdown is caused by concatenation. Because std::string += is
> more simillar to std.array.(Ref)Appender
>

Correct.  The semantics of ~= mean that the memory is copied around to
a new allocation every time (unless the array is marked
assumeSafeAppend).


More information about the Digitalmars-d mailing list