Pre-allocation doesn't really matter as long as the re-allocations, whenever 
they occur, respect the capacity argument.

Tom Wetmore

On Aug 22, 2013, at 1:22 PM, Keary Suska <cocoa-...@esoteritech.com> wrote:

> On Aug 22, 2013, at 9:06 AM, Jens Alfke wrote:
> 
>> create the empty output mutable string with sufficient capacity (i.e. maybe 
>> 2x the input string length)
> 
> On an entirely different note, does the various initWithCapacity methods of 
> mutable classes actually do any pre-allocation? Last I understood they really 
> didn't...
> 
> Keary Suska


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to