-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why use NSString? #70
Comments
If you look into code you see "expandingTildeInPath" which is defined in @interface NSString (NSStringPathExtensions). Code behind expandingTildeInPath is NSFileManager + NSHomeDirectory which use NSString. What is your solution/workaround? |
I mean using these Obj-C API is convenient but high cost, so I prefer to implement the logics in pure Swift in aspect of performance. It would be very valuable improvement because this library is used in many popular OSS 👍 |
see https://github.com/kylef/PathKit/pull/72/files#r391294029 for some mitigation |
Thanks for useful library 😄
While investigating performance problem, I found this library converts
Swift.String
intoNSString
and it's very high cost operation.Why this library uses NSString instead of implementing its own logic?
The text was updated successfully, but these errors were encountered: