mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #1133] Add async I/O support for SevenZip archive initialization #1568
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?
Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/1133
State: closed
Merged: Yes
SevenZipArchive was performing synchronous reads during archive initialization, causing failures when used with async-only streams via
OpenAsyncArchive.Changes:
OpenAsyncandReadDatabaseAsyncmethods that useReadExactAsyncinstead of synchronousReadcallsLoadFactoryAsyncto initialize archive database asynchronouslyLoadEntriesAsyncto use async loading pathLoadEntriesto iterator pattern (yield return) for proper lazy evaluationThe async and sync code paths are now properly separated, with
EntriesAsyncusing fully async I/O operations:✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.