mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
ZipArchive.RemoveEntry slow when removing in bulk #403
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?
Originally created by @DigVolSoft on GitHub (Jun 22, 2020).
Nice library, thanks.
I've found that ZipArchive.RemoveEntry is slow when removing many entries (e.g. 1,000 in an archive of 60,000). It starts off ok but slows down to 1 file per second fairly quickly.
Could this be an issue of re-building between each removal, similar to https://github.com/adamhathcock/sharpcompress/pull/485
?
thanks
@adamhathcock commented on GitHub (Jun 22, 2020):
Probably. Did you use the method in your code?
@DigVolSoft commented on GitHub (Jun 22, 2020):
Not in anything final - just currently experimenting with the library as it has nice support for multiple formats.