• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fastest way to replace characters in string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fastest way to replace characters in string


  • Subject: Re: Fastest way to replace characters in string
  • From: Steve Mills <email@hidden>
  • Date: Thu, 22 Aug 2013 12:43:42 -0500

On Aug 22, 2013, at 12:31:55, Thomas Wetmore <email@hidden>
 wrote:

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

Sure they do. If you don't preallocate, but instead keep appending, and the pointer needs to grow with every append, it *could* reallocate with every append.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Fastest way to replace characters in string
      • From: Marcel Weiher <email@hidden>
    • Re: Fastest way to replace characters in string
      • From: Thomas Wetmore <email@hidden>
    • Re: Fastest way to replace characters in string
      • From: Thomas Wetmore <email@hidden>
References: 
 >Fastest way to replace characters in string (From: Diederik Meijer | Ten Horses <email@hidden>)
 >Re: Fastest way to replace characters in string (From: Wim Lewis <email@hidden>)
 >Re: Fastest way to replace characters in string (From: Diederik Meijer | Ten Horses <email@hidden>)
 >Re: Fastest way to replace characters in string (From: Jens Alfke <email@hidden>)
 >Re: Fastest way to replace characters in string (From: Keary Suska <email@hidden>)
 >Re: Fastest way to replace characters in string (From: Thomas Wetmore <email@hidden>)

  • Prev by Date: Re: Fastest way to replace characters in string
  • Next by Date: Re: Fastest way to replace characters in string
  • Previous by thread: Re: Fastest way to replace characters in string
  • Next by thread: Re: Fastest way to replace characters in string
  • Index(es):
    • Date
    • Thread