Skip to content

Commit

Permalink
Address huf / piz performance regressions (AcademySoftwareFoundation#…
Browse files Browse the repository at this point in the history
…1868)

* Enable fast huf for os/x, optimize routines

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Apply some minor optimizations to piz decode

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* disable alias tag for msvc

It appears MSVC does not handle the restrict keyword properly

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Replicate comment denoting issue w/ msvc

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Remove overzealous memory optimization

It is more efficient to store the code length and symbol in the one
table, but appears measurably slower. Remove that.

Further, do not constantly refill the bit buffer during huf fast decode,
that slows down the decoding

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

---------

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd authored Oct 6, 2024
1 parent 26fc443 commit 1cd4bf6
Show file tree
Hide file tree
Showing 2 changed files with 214 additions and 133 deletions.
Loading

0 comments on commit 1cd4bf6

Please sign in to comment.