Skip to content

Refactor diff half match i and remove concat #48

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 2 commits into from
Nov 2, 2016

Conversation

zimmski
Copy link
Collaborator

@zimmski zimmski commented Nov 2, 2016

See the refactoring commit for details. DiffHalfMatch is now also a bit faster.

- The variable j is just a loop index so use a for-loop
- Most indentations can be removed by doing early-exits
- By doing the concatenating of bestCommon later we can often save lots
of cycles
- "concat" is useless since in most parts of the code, it isn't used
either

Fixes #46
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.006%) to 98.247% when pulling c6f74d9 on 46-refactor-diffHalfMatchI-and-remove-concat into ff694a8 on master.

@zimmski zimmski merged commit c55cf50 into master Nov 2, 2016
@zimmski zimmski deleted the 46-refactor-diffHalfMatchI-and-remove-concat branch November 2, 2016 15:33
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