std::string responsible for half the allocations in chrome
deadalnix via Digitalmars-d
digitalmars-d at puremagic.com
Fri Dec 5 16:06:14 PST 2014
On Saturday, 6 December 2014 at 00:03:17 UTC, Walter Bright wrote:
> On 12/5/2014 2:03 PM, deadalnix wrote:
>> http://www.reddit.com/r/programming/comments/2ocmvb/stdstring_is_responsible_for_almost_half_of_all/
>>
>>
>> Looks like someone need immutable(char)[] .
>
> Also slicing. The huge advantage of slicing is avoiding the
> necessity of a copy just to add the terminating 0.
That was implied in my comment.
More information about the Digitalmars-d
mailing list