Skip to content
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

feat: reuse and clear instead of allocate, 2x speedup #22

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

a10y
Copy link
Contributor

@a10y a10y commented Aug 22, 2024

image

Adds clear method on Compressor, Counter, CodesBitmap, removal method on LossyPHT.

This allows us to reuse Compressor in the training tight loop rather than reinitializing, since building a Compressor is quite expensive

@a10y a10y changed the title feat: reuse and clear instead of allocate, 40% speedup feat: reuse and clear instead of allocate, 2x speedup Aug 22, 2024
@a10y a10y merged commit 13350a4 into develop Aug 22, 2024
3 checks passed
@a10y a10y deleted the aduffy/clear-counters branch August 22, 2024 13:07
@github-actions github-actions bot mentioned this pull request Aug 22, 2024
a10y pushed a commit that referenced this pull request Aug 22, 2024
## 🤖 New release
* `fsst-rs`: 0.2.2 -> 0.2.3

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

## [0.2.3](v0.2.2...v0.2.3) -
2024-08-22

### Added
- reuse and clear instead of allocate, 2x speedup
([#22](#22))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

1 participant