Closed LuizZak closed 7 years ago
…’re going to use the range in an NSMakeRange call anyways
String.CharacterView's count is taking 40% of the time parsing the logs:
Simply changing a line to use NSString's length property improves the performance by about 2x:
There's still a lot of time being spent with rangeOfCharacters, seems to be related to retain/releases, but this is a good starting improvement!
Thanks. That's interesting.
…’re going to use the range in an NSMakeRange call anyways
String.CharacterView's count is taking 40% of the time parsing the logs:
Simply changing a line to use NSString's length property improves the performance by about 2x:
There's still a lot of time being spent with rangeOfCharacters, seems to be related to retain/releases, but this is a good starting improvement!