mirror of
https://github.com/Devolutions/IronRDP.git
synced 2026-11-23 08:25:56 +00:00
7606bfffcf
Replace byte-by-byte history buffer copies with copy_within (memmove) for non-overlapping LZ77 matches in MPPC, NCRUSH, and XCRUSH decompression. Use 8-byte u64 XOR chunk comparison in NCRUSH and XCRUSH match-length finding instead of per-byte comparison. Both optimizations are safe Rust, WASM-compatible, and scale with match length. Add criterion benchmarks for all four compression algorithms. Co-authored-by: Cursor <cursoragent@cursor.com>