brendan-duncan / archive

Dart library to encode and decode various archive and compression formats, such as Zip, Tar, GZip, ZLib, and BZip2.
MIT License
400 stars 140 forks source link

[Performance] 3.6.1 is much slower than 3.5.0 #342

Open UnluckyY1 opened 3 months ago

UnluckyY1 commented 3 months ago

I have observed a significant performance regression between versions 3.5.0 and 3.6.1. My use case is quite straightforward: I create a ZipFileEncoder and add some files to it. The same operation takes considerably longer in version 3.6.1 compared to version 3.5.0.

 final zipEncoder = ZipFileEncoder();
  zipEncoder.create(tempFile.path);
  await zipEncoder.addFile(someFile);
•   Version 3.5.0: ~2 seconds
•   Version 3.6.1: ~5 seconds