Created
May 8, 2013 20:54
-
-
Save bagelturf/5543576 to your computer and use it in GitHub Desktop.
URLByAppendingPathComponent is 10x slower than URLByAppendingPathComponent:isDirectory:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running Time Self Symbol Name | |
519.0ms 3.4% 1.0 -[NSURL(NSURLPathUtilities) URLByAppendingPathComponent:] | |
459.0ms 3.0% 0.0 -[NSURL getResourceValue:forKey:error:] | |
456.0ms 3.0% 0.0 CFURLCopyResourcePropertyForKey | |
454.0ms 2.9% 0.0 _FSURLCopyResourcePropertyForKey | |
2.0ms 0.0% 2.0 OSSpinLockUnlock$shim | |
2.0ms 0.0% 2.0 _FSURLEndResourcePropertyCacheAccess | |
1.0ms 0.0% 1.0 CFRunLoopGetCurrent | |
55.0ms 0.3% 0.0 -[NSURL(NSURLPathUtilities) URLByAppendingPathComponent:isDirectory:] | |
2.0ms 0.0% 1.0 -[__NSCFString hasSuffix:] | |
1.0ms 0.0% 1.0 objc_msgSend | |
1.0ms 0.0% 0.0 -[NSURL(NSURL) isFileURL] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice. Thanks :)