-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Optimize File.matchPattern(_:) -> [(NSRange, [SyntaxKind])]
#263
Conversation
Change from converting match's position to converting token's position. By applying this, duration of linting KeychainAccess is reduced from 752+sec(I can't wait completion) to 27sec.
|
||
* Make linting faster than 0.5.0, but slower than 0.4.0 | ||
[Norio Nomura](https://github.com/norio-nomura) | ||
[#263](https://github.com/realm/SwiftLint/pull/263) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please refer to issues fixed rather than this PR's number here, as outlined in CONTRIBUTING.md.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I create an issue on SwiftLint or refer to jpsim/SourceKitten#119 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can refer to the SourceKitten issue, you can refer to other changelog entries for the format there.
Other than naming 👍 |
Thank you for reviews! |
👍 big thanks for this! |
Optimize `File.matchPattern(_:) -> [(NSRange, [SyntaxKind])]`
Change from converting match's position to converting token's position.
By applying this, duration of linting KeychainAccess is reduced from 752+sec(I can't wait completion) to 27sec, but still slower that 0.4.0 (7 sec).
Related: jpsim/SourceKitten#119