[PR #898] Implement ReadByte for LzmaStream and LzOutWindow #1328

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

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

State: closed
Merged: Yes


Similar to #897, this improves performance and reduces memory allocations when reading certain 7-zip files.

Using the .7z file from https://github.com/adamhathcock/sharpcompress/issues/399#issuecomment-405028725, I measured a speedup in reading / skipping the entire .7z file from ~23 seconds to ~18 seconds, and memory allocations dropped by ~8.5GB.

**Original Pull Request:** https://github.com/adamhathcock/sharpcompress/pull/898 **State:** closed **Merged:** Yes --- Similar to #897, this improves performance and reduces memory allocations when reading certain 7-zip files. Using the .7z file from https://github.com/adamhathcock/sharpcompress/issues/399#issuecomment-405028725, I measured a speedup in reading / skipping the entire .7z file from ~23 seconds to ~18 seconds, and memory allocations dropped by ~8.5GB.
claunia added the pull-request label 2026-01-29 22:20:00 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#1328