-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
improve speed of RuboCop::PathUtil#smart_path #5120
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
walf443
force-pushed
the
improve_path_util_smart_path
branch
2 times, most recently
from
November 24, 2017 15:55
0fbdc89
to
6ff2866
Compare
Nice! 👍 I think rebasing on latest master should fix the CI failure. |
walf443
force-pushed
the
improve_path_util_smart_path
branch
from
November 25, 2017 02:50
6ff2866
to
ce3d18e
Compare
Awesome improvement! Fix a rubocop's offense to fix the build failure, and resolve the conflict. |
walf443
force-pushed
the
improve_path_util_smart_path
branch
2 times, most recently
from
November 25, 2017 11:04
540bdcf
to
14cc493
Compare
walf443
force-pushed
the
improve_path_util_smart_path
branch
from
November 25, 2017 11:27
14cc493
to
7ec1ff8
Compare
@pocke sorry. fixed it. travis-ci/pr seems to failed followings:
Is it related this PR? |
11 tasks
I send PR to fix this https://github.com/bbatsov/rubocop/pull/5124/files |
pocke
approved these changes
Nov 25, 2017
garettarrowood
approved these changes
Nov 25, 2017
@bbatsov: This was accidentally closed by GitHub. 🙂 |
11 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Benchmark
benchmark script is followings:
Why RuboCop::PathUtil#smart_path should improve performance?
This is a patch for profiling rubocop with stackprof
This is output of stackprof result of running ./bin/rubocop on master
RuboCop::PathUtil#relative_path is hotspot.
100% called by RuboCop::PathUtil#smart_path.
After this patch, stackprof result changed followings:
Before submitting the PR make sure the following are checked:
[Fix #issue-number]
(if the related issue exists).master
(if not - rebase it).rake spec
) are passing.rake internal_investigation
.and description in grammatically correct, complete sentences.
rake generate_cops_documentation
(required only when you've added a new cop or changed the configuration/documentation of an existing cop).