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 Markus0.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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
