Skip to content

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