Skip to content

Commit

Permalink
add minor huf encode / decode performance optimizations
Browse files Browse the repository at this point in the history
uses likely / unlikely macros to better guide branch predictor,
convert some static / local functions from functions to macros to avoid
having to take the address of a local variable, preventing register
optimizations, and finally guide pointer aliasing to get some
speed improvements in the huf encoder / decoder.

Signed-off-by: Kimball Thurston <[email protected]>
  • Loading branch information
kdt3rd authored Jan 1, 2025
1 parent 22cbb79 commit ad85f1a
Showing 1 changed file with 183 additions and 134 deletions.
Loading

0 comments on commit ad85f1a

Please sign in to comment.