Skip to content

Conversation

86xsk
Copy link

@86xsk 86xsk commented Aug 24, 2025

This PR updates the list code to avoid loading an entire 7z archive into memory when not necessary. This fixes a performance regression introduced in #819.

The aforementioned PR fixed a bug with nested archive formats, where the SevenZip code tried to read the source file from disk rather than the decompressed stream it should've been reading. This PR reintroduces the original read-from-disk behavior when SevenZip is the sole archive format. This is okay since we don't have to worry about nested compression when there is only one format.

I tested this by:

86xsk added 2 commits August 23, 2025 18:30
Avoid reading entire 7z file into memory when it's not chained with
other compression formats.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant