• 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: "email@hidden" <email@hidden>
  • Date: Mon, 27 Jul 2009 00:50:24 +0200

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:35:00.382 tst[91885:10b] CF: Read data in 0.018322 seconds
2009-07-26 23:35:01.406 tst[91885:10b] NS: Read data in 0.042197 seconds
2009-07-26 23:35:02.381 tst[91885:10b] CF: Read data in 0.017629 seconds
2009-07-26 23:35:03.384 tst[91885:10b] NS: Read data in 0.020038 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
2009-07-26 23:44:27.195 tst[93798:10b] CF: Parsed data in 0.609571 seconds
2009-07-26 23:44:28.082 tst[93798:10b] NS: Parsed data in 0.496928 seconds
2009-07-26 23:44:29.080 tst[93798:10b] CF: Parsed data in 0.494216 seconds
2009-07-26 23:44:30.076 tst[93798:10b] NS: Parsed data in 0.490349 seconds
2009-07-26 23:44:31.153 tst[93798:10b] CF: Parsed data in 0.567589 seconds
2009-07-26 23:44:32.077 tst[93798:10b] NS: Parsed data in 0.491887 seconds

Cheers.
_______________________________________________

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: NSDictionary crash
      • From: Aaron Burghardt <email@hidden>
  • Prev by Date: Re: Display csv in a tableView with bindings
  • Next by Date: Re: Display csv in a tableView with bindings
  • Previous by thread: Re: NSDictionary crash
  • Next by thread: Re: NSDictionary crash
  • Index(es):
    • Date
    • Thread