Skip to content

Conversation

@andrewbailey
Copy link
Owner

This PR contains all code changes to be included with Difference version 1.1.0. In addition to bumping the version number, this PR includes the following changes:

  • Added KDocs to all public APIs
  • Reduced the number of memory allocations needed to create a diff by making Point a value class, and reducing the number of unnecessary list copies created. Quick testing has shown that computing a difference now uses approximately 60-65% fewer allocations. The end result is that the algorithm now runs between 8-17% faster, with smaller diffs seeing more gains than larger diffs. Similarly, diffs that do not detect moves see a higher percentage improvement than if move detection is enabled.

Base automatically changed from ab/kotlin-2.0 to master January 26, 2025 22:39
@andrewbailey andrewbailey merged commit 029d9a9 into master Jan 26, 2025
1 check passed
@andrewbailey andrewbailey deleted the ab/v1.1-tweaks branch January 26, 2025 22:40
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