Make index.addAll use status to increase performance - #475
Merged
Conversation
maxkorp
force-pushed
the
speedup-index-addall
branch
from
March 9, 2015 18:11
9417492 to
a8fd045
Compare
maxkorp
force-pushed
the
speedup-index-addall
branch
from
March 9, 2015 22:26
0180b9f to
5afb809
Compare
Member
There was a problem hiding this comment.
Can this just be: return paths;?
Collaborator
There was a problem hiding this comment.
Yeah. I don't know the purpose of the Promise.resolve
Collaborator
|
Are we ok with putting this in 0.3.0 milestone? |
Member
|
Works for me. |
Collaborator
|
I'm going to take out that |
johnhaley81
added a commit
that referenced
this pull request
Mar 10, 2015
Make index.addAll use status to increase performance
This file contains hidden or 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
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.
See here: libgit2/libgit2#2687
Doing this speeds things up from around 2500-3500ms for a small-medium repo to around 180-200ms. We should remove this once it's fixed in libgit2, but until then, this seems silly not to add.
This also adds pathspec.create (since we need that to actually compare pathspecs)