Skip to content
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

Merged
merged 3 commits into from
Dec 14, 2015

Conversation

norio-nomura
Copy link
Collaborator

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

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)
Copy link
Collaborator

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.

Copy link
Collaborator Author

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 ?

Copy link
Collaborator

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.

@jpsim
Copy link
Collaborator

jpsim commented Dec 13, 2015

Other than naming 👍

@norio-nomura
Copy link
Collaborator Author

Thank you for reviews!

@jpsim
Copy link
Collaborator

jpsim commented Dec 14, 2015

👍 big thanks for this!

jpsim added a commit that referenced this pull request Dec 14, 2015
Optimize `File.matchPattern(_:) -> [(NSRange, [SyntaxKind])]`
@jpsim jpsim merged commit 56bed8b into realm:master Dec 14, 2015
@norio-nomura norio-nomura deleted the optimize-file-matchPattern branch December 14, 2015 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants