ZipArchive.RemoveEntry slow when removing in bulk #403

Open
opened 2026-01-29 22:11:19 +00:00 by claunia · 2 comments
Owner

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

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
Author
Owner

@adamhathcock commented on GitHub (Jun 22, 2020):

Probably. Did you use the method in your code?

@adamhathcock commented on GitHub (Jun 22, 2020): Probably. Did you use the method in your code?
Author
Owner

@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.

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#403