• 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: Is it a bad idea to invoke "init..." over and over on the same object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it a bad idea to invoke "init..." over and over on the same object?


  • Subject: Re: Is it a bad idea to invoke "init..." over and over on the same object?
  • From: j o a r <email@hidden>
  • Date: Wed, 2 Nov 2005 16:34:07 +0100


On 2 nov 2005, at 16.25, Andrei Tchijov wrote:

- Can we expect that NSMutableData will not re-allocate "bytes" as a result of "setLength" if "length" is always less or equal initial capacity?

Never optimize without benchmarks! What is Shark telling you about this?
Let us know what your real bottle neck is, and we will be able to give you better advice.


That said, I've found NSMutableData to be surprisingly efficient.

j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Is it a bad idea to invoke "init..." over and over on the same object? (From: Andrei Tchijov <email@hidden>)
 >Re: Is it a bad idea to invoke "init..." over and over on the same object? (From: Daniel Jalkut <email@hidden>)
 >Re: Is it a bad idea to invoke "init..." over and over on the same object? (From: Andrei Tchijov <email@hidden>)

  • Prev by Date: Re: Is it a bad idea to invoke "init..." over and over on the same object?
  • Next by Date: Re: Is it a bad idea to invoke "init..." over and over on the same object?
  • Previous by thread: Re: Is it a bad idea to invoke "init..." over and over on the same object?
  • Next by thread: Re: Is it a bad idea to invoke "init..." over and over on the same object?
  • Index(es):
    • Date
    • Thread