PSeitz / lz4_flex

Fastest pure Rust implementation of LZ4 compression/decompression.
MIT License
441 stars 28 forks source link

improve unsafe Decompression Performance ~4% #114

Closed PSeitz closed 1 year ago

PSeitz commented 1 year ago

This is another attempt to replace the aggressive compiler after the failed attempt #69 (wrote out of bounds in some cases)

The unrolling is avoided by manually unrolling less aggressive. Decompression performance is slightly improved by ca 4%, except the smallest test case.

codecov[bot] commented 1 year ago

Codecov Report

Merging #114 (756e2f0) into main (ab128d1) will increase coverage by 0.03%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #114      +/-   ##
==========================================
+ Coverage   89.75%   89.78%   +0.03%     
==========================================
  Files          13       13              
  Lines        2449     2458       +9     
==========================================
+ Hits         2198     2207       +9     
  Misses        251      251              
Impacted Files Coverage Δ
src/block/decompress.rs 95.97% <100.00%> (+0.09%) :arrow_up: