bebop / poly

A Go package for engineering organisms.
https://pkg.go.dev/github.com/bebop/poly
MIT License
659 stars 68 forks source link

mash: optimize mash similarity function, add benchmark #395

Closed matiasinsaurralde closed 8 months ago

matiasinsaurralde commented 8 months ago

Changes in this PR

Why are you making these changes?

benchmark old allocs new allocs delta BenchmarkMash-8 0 0 +0.00% BenchmarkMash-8 0 0 +0.00% BenchmarkMash-8 0 0 +0.00%

benchmark old bytes new bytes delta BenchmarkMash-8 0 0 +0.00% BenchmarkMash-8 0 0 +0.00% BenchmarkMash-8 0 0 +0.00%



### Are any changes breaking? (IMPORTANT)
No - tests look fine

## Pre-merge checklist
*All of these must be satisfied before this PR is considered
ready for merging. Mergeable PRs will be prioritized for review.*

* [ ] New packages/exported functions have docstrings.
* [x] New/changed functionality is thoroughly tested.
* [ ] New/changed functionality has a function giving an example of its usage in the associated test file. See `primers/primers_test.go` for what this might look like.
* [ ] Changes are documented in `CHANGELOG.md` in the `[Unreleased]` section.
* [x] All code is properly formatted and linted.
* [x] The PR template is filled out.