• 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: NSDictionary crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDictionary crash


  • Subject: Re: NSDictionary crash
  • From: Aaron Burghardt <email@hidden>
  • Date: Sun, 26 Jul 2009 20:38:10 -0400


On Jul 26, 2009, at 6:50 PM, email@hidden wrote:

On Sun, Jul 26, 2009 at 8:04 PM, Aaron
Burghardt<email@hidden> wrote:
Interesting and not surprising. What I was suggesting, though, is that the
amount of time needed to read the data is probably small compared to the
time spent parsing the data into a plist.

Good point. So I ran a second test. Turns out CF is still your best option for sucking in the data. But for the parsing, NSPropertyListSerialization is somewhat faster. So, using a mixed up method, you get a slightly better result. The difference is negligible, but still...

2009-07-26 23:34:58.381 tst[91885:10b] CF: Read data in 0.017413 seconds
2009-07-26 23:34:59.385 tst[91885:10b] NS: Read data in 0.021142 seconds


2009-07-26 23:44:25.146 tst[93798:10b] CF: Parsed data in 0.560710 seconds
2009-07-26 23:44:26.091 tst[93798:10b] NS: Parsed data in 0.505121 seconds

Nice validation of the relative time difference between reading the data and parsing the data.


So, if I may don my professorial hat for a moment, you have substantially reduced the window of time in which you may collide with iTunes, but you haven't eliminated it. You have an implementation that we *think* will be more robust when it does happen, but it hasn't been tested. Can you confirm it? Going back to your original problem, do you care, or are you satisfied that reading the data first is an adequate improvement?

Regards,

Aaron

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

_______________________________________________

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

References: 
 >Re: NSDictionary crash (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: I need a milder application badge (solution #2)
  • Next by Date: Re: mouse entered/exited in nscollectionviewitem's view
  • Previous by thread: Re: NSDictionary crash
  • Next by thread: Fwd: I need a milder application badge (solution)
  • Index(es):
    • Date
    • Thread