[Issue 7942] Appending different string types corrupts memory
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jul 30 08:14:04 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=7942
--- Comment #6 from yebblies <yebblies at gmail.com> ---
(In reply to Kenji Hara from comment #5)
>
> In contrast to the one character transcoding on foreach iteration, the
> implicit transcoding cost on appending will be bigger when appended string
> is very long, and it would be sometimes difficult to find it.
>
> I think accepting it is not reasonable.
Appending an array of values to an array will take longer than appending a
single value. Even with implicit re-encoding it will still be O(N), same as
other arrays.
Appending an array of structs with postblits could easily cause the same sort
of performance problems.
--
More information about the Digitalmars-d-bugs
mailing list