mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-09 21:24:08 +00:00
[PR #898] [MERGED] Implement ReadByte for LzmaStream and LzOutWindow #1325
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/adamhathcock/sharpcompress/pull/898
Author: @Morilli
Created: 2/16/2025
Status: ✅ Merged
Merged: 2/17/2025
Merged by: @adamhathcock
Base:
master← Head:lz-readbyte📝 Commits (1)
4b4ec12Implement ReadByte for LzmaStream and LzOutWindow📊 Changes
2 files changed (+95 additions, -0 deletions)
View changed files
📝
src/SharpCompress/Compressors/LZMA/LZ/LzOutWindow.cs(+19 -0)📝
src/SharpCompress/Compressors/LZMA/LzmaStream.cs(+76 -0)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.