You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use string based SourceLocationConverter init because it's faster.
I'm not sure why, but the string based initializer for `SourceLocationConverter` is substantially faster than the syntax tree based initializer.
The impact is a few hundred ms per file, so it is substantial when formatting many files.
Results:
- swift-protobuf 21.4 seconds before, 17.9 seconds after
- 10k LOC file - 2.5 seconds before, 2.2 seconds after
0 commit comments