-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use slices rather than vectors in ZopfliHash (std only) (#27)
* Optimize HashThing to use slices rather than Vec (cherry picked from commit 281f38a) * Fix stack overflow by building HashThing and ZopfliHash on heap (cherry picked from commit a4ac5de) * cargo fmt (cherry picked from commit 0f3731c) * Refactor: build the entire ZopfliHash in the unsafe code * Bug fix: must explicitly import Box on nightly compiler * Bug fix: use old code when `std` isn't enabled * Bug fix * Check for null and convert to Box<> before initializing * refactor: drop `once_cell` dependency, apply to non-std, improve heap usage * chore: fix no-std build --------- Co-authored-by: Chris Hennick <[email protected]> Co-authored-by: Alejandro González <[email protected]>
- Loading branch information
1 parent
74e43af
commit 21d5521
Showing
1 changed file
with
59 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters