DustMite, a D test case minimization tool
Vladimir Panteleev
vladimir at thecybershadow.net
Sun May 22 18:39:55 PDT 2011
On Mon, 23 May 2011 04:14:32 +0300, Robert Jacques <sandford at jhu.edu>
wrote:
> On Sun, 22 May 2011 19:30:58 -0400, Vladimir Panteleev
> <vladimir at thecybershadow.net> wrote:
>
>> On Mon, 23 May 2011 02:15:49 +0300, Robert Jacques <sandford at jhu.edu>
>> wrote:
>>
>>> As for performance, using appender is never slower than ~=, as it
>>> uses essentially the same code.
>>
>> I don't think using ~= when appending a string to a string will
>> validate the UTF. Will it?
>>
>
> For string ~= string, appender calls string[] = string, which does a
> memcopy, iirc.
Right, so my complexity rant was BS, but appender will still validate UTF
on every append, unlike ~=. Isn't that a bug?
--
Best regards,
Vladimir mailto:vladimir at thecybershadow.net
More information about the Digitalmars-d
mailing list