Skip to content

Avoid searching branch commits lists twice #225

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

Merged
merged 1 commit into from
Apr 4, 2016
Merged

Avoid searching branch commits lists twice #225

merged 1 commit into from
Apr 4, 2016

Conversation

promulo
Copy link
Contributor

@promulo promulo commented Mar 2, 2016

Disclaimer: this is my first PR, so I apologize in advance in case it is not compliant with the project guidelines. :)

Also, it does not exactly fix what is reported in #208 but it introduces some small changes in the same method.

The current implementation can perform two searches in both first_commits and second_commits lists (first using in and second using index). This PR uses only index to search and use its return to decide whether to slice or not the lists.

Hope it helps

@vtemian
Copy link
Contributor

vtemian commented Apr 4, 2016

Thanks for PR :D

LGTM!

@vtemian vtemian merged commit a48cfd9 into presslabs:master Apr 4, 2016
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.

3 participants