• 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: NSKeyedArchiver finishEncoding takes forever
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSKeyedArchiver finishEncoding takes forever


  • Subject: Re: NSKeyedArchiver finishEncoding takes forever
  • From: Markus Spoettl <email@hidden>
  • Date: Wed, 18 Jun 2008 13:06:29 -0700

On Jun 18, 2008, at 12:35 PM, Michael Ash wrote:
I saw no mention in your message; have you profiled your app yet? Even
though the time is not being spent in your code, a profile can give
you an idea of what's taking up all this time, and may give you hints
as to how to make it go faster. First response to any speed problem
should always be to run Shark on it.


I did profile it but it's not my code that is slow. It's the call to [archiver finishEncoding] that's taking so long (see the Shark trace below.

Regards
Markus

0.0% 98.2% Foundation -[NSKeyedArchiver finishEncoding]
0.0% 98.2% CoreFoundation __CFBinaryPlistWriteToStream
0.0% 98.2% CoreFoundation _flattenPlist
0.0% 98.2% CoreFoundation _flattenPlist
0.0% 98.2% CoreFoundation _flattenPlist
0.0% 98.1% CoreFoundation _flattenPlist
0.0% 81.9% CoreFoundation CFSetAddValue
3.5% 57.0% CoreFoundation __CFSetFindBuckets2
2.6% 52.0% CoreFoundation __plistNumberEqual
4.0% 27.9% CoreFoundation CFEqual
1.1% 23.7% CoreFoundation __CFNumberEqual
10.3% 22.6% CoreFoundation CFNumberCompare
6.9% 11.9% CoreFoundation __CFNumberGetValue
3.8% 3.8% commpage [libSystem.B.dylib] __memcpy
0.8% 0.8% CoreFoundation dyld_stub_memmove
0.4% 0.4% libSystem.B.dylib memmove
0.4% 0.4% commpage [libSystem.B.dylib] __memcpy
0.0% 0.0% CoreFoundation __CFNumberGetValue
0.2% 0.2% CoreFoundation CFNumberCompare
4.9% 20.5% CoreFoundation CFNumberIsFloatType
15.6% 15.6% CoreFoundation CFNumberGetType
0.6% 0.6% CoreFoundation CFNumberGetType
0.4% 0.4% CoreFoundation __CFNumberEqual
1.2% 1.2% CoreFoundation CFNumberIsFloatType
0.2% 0.2% CoreFoundation CFEqual
0.0% 0.0% CoreFoundation __CFNumberHash
0.0% 0.0% CoreFoundation __CFStringHash
0.0% 0.0% CoreFoundation _CFHash
0.0% 0.0% CoreFoundation CFHash
0.0% 24.7% CoreFoundation __CFSetGrow
1.5% 24.6% CoreFoundation __CFSetFindBuckets2
0.1% 0.1% CoreFoundation __plistNumberEqual
0.0% 0.0% CoreFoundation _CFHash
0.0% 0.0% CoreFoundation __CFNumberHash
0.3% 0.3% CoreFoundation __plistNumberEqual
0.0% 0.0% CoreFoundation __CFNumberHash
0.0% 16.0% CoreFoundation CFSetGetValue
1.2% 15.9% CoreFoundation __CFSetFindBuckets1b
1.1% 14.1% CoreFoundation __plistNumberEqual
2.0% 7.4% CoreFoundation CFNumberIsFloatType
0.8% 5.4% CoreFoundation CFEqual
0.2% 0.2% CoreFoundation CFNumberGetType
0.1% 0.1% CoreFoundation __CFNumberEqual
0.4% 0.4% CoreFoundation CFNumberIsFloatType
0.0% 0.0% CoreFoundation CFEqual
0.0% 0.0% CoreFoundation __CFStringHash
0.0% 0.0% CoreFoundation __CFNumberHash
0.0% 0.0% CoreFoundation CFHash
0.0% 0.0% CoreFoundation _CFHash
0.1% 0.1% CoreFoundation __plistNumberEqual
0.0% 0.0% CoreFoundation __CFNumberHash
0.0% 0.1% CoreFoundation CFArrayAppendValue
0.0% 0.1% CoreFoundation CFDictionaryAddValue
0.0% 0.0% CoreFoundation _flattenPlist
0.0% 0.0% CoreFoundation CFSetGetCount
0.0% 0.0% CoreFoundation CFDictionaryGetValue
0.0% 0.0% CoreFoundation CFArrayGetCount
0.0% 0.0% CoreFoundation _CFArrayReplaceValues
0.0% 0.0% CoreFoundation __CFSetFindBuckets1b
0.0% 0.0% CoreFoundation CFDictionaryGetKeysAndValues
0.0% 0.0% CoreFoundation CFDictionaryAddValue
0.0% 0.0% CoreFoundation CFArrayAppendValue
0.0% 0.0% CoreFoundation CFSetAddValue
0.0% 0.0% CoreFoundation CFArrayGetCount
0.0% 0.0% CoreFoundation CFSetGetCount
0.0% 0.0% CoreFoundation CFDictionaryGetValue
0.0% 0.0% CoreFoundation CFStorageGetValues
0.0% 0.0% CoreFoundation CFDictionaryGetKeysAndValues



-- __________________________________________ Markus Spoettl

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

  • Follow-Ups:
    • Re: NSKeyedArchiver finishEncoding takes forever
      • From: Quincey Morris <email@hidden>
References: 
 >NSKeyedArchiver finishEncoding takes forever (From: Markus Spoettl <email@hidden>)
 >Re: NSKeyedArchiver finishEncoding takes forever (From: "Michael Ash" <email@hidden>)

  • Prev by Date: re: Working if Cocoa Core Data
  • Next by Date: Re: unexpected nil outlet
  • Previous by thread: Re: NSKeyedArchiver finishEncoding takes forever
  • Next by thread: Re: NSKeyedArchiver finishEncoding takes forever
  • Index(es):
    • Date
    • Thread