[PR #907] Optimize LZ OutWindow.CopyBlock #1337

Open
opened 2026-01-29 22:20:03 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/907

State: closed
Merged: Yes


After a bit of profiling, this function seemed like a good candidate for optimization. Testing on a large-ish archive (412 MB), I'm seeing extraction times like:

CPU Before After % of Original
Apple M3 31.1 s 26.8 s 86%
Core i7-6700k 37.2 s 33.8 s 91%
**Original Pull Request:** https://github.com/adamhathcock/sharpcompress/pull/907 **State:** closed **Merged:** Yes --- After a bit of profiling, this function seemed like a good candidate for optimization. Testing on a [large-ish archive](https://download.qt.io/online/qtsdkrepository/mac_x64/desktop/qt6_682/qt6_682/qt.qt6.682.clang_64/6.8.2-0-202501260836qtdeclarative-MacOS-MacOS_14-Clang-MacOS-MacOS_14-X86_64-ARM64.7z) (412 MB), I'm seeing extraction times like: |CPU|Before|After|% of Original| |-|-|-|-| |Apple M3|31.1 s|26.8 s|86%| |Core i7-6700k|37.2 s|33.8 s|91%|
claunia added the pull-request label 2026-01-29 22:20:03 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#1337