Latest patch (4.2.1) has a performance regression.
I created a sample repository that demonstrates the issue.
I created 4 zip archives with empty files: 100, 1k, 5k, and 10k files.
I decompressed each one of the files and measured decompress times.
Here are the results:
4.2.1:
Decompressing 100_files.zip took 311.634899020195 milliseconds.
Decompressing 1k_files.zip took 2147.499899983406 milliseconds.
Decompressing 5k_files.zip took 10381.333901017904 milliseconds.
Decompressing 10k_files.zip took 31341.986799001694 milliseconds.
4.2.0:
Decompressing 100_files.zip took 196.21060001850128 milliseconds.
Decompressing 1k_files.zip took 1042.0124000012875 milliseconds.
Decompressing 5k_files.zip took 4601.827601015568 milliseconds.
Decompressing 10k_files.zip took 15453.908199995756 milliseconds.
Latest patch (4.2.1) has a performance regression. I created a sample repository that demonstrates the issue. I created 4 zip archives with empty files: 100, 1k, 5k, and 10k files. I decompressed each one of the files and measured decompress times.
Here are the results:
4.2.1: Decompressing 100_files.zip took 311.634899020195 milliseconds. Decompressing 1k_files.zip took 2147.499899983406 milliseconds. Decompressing 5k_files.zip took 10381.333901017904 milliseconds. Decompressing 10k_files.zip took 31341.986799001694 milliseconds.
4.2.0: Decompressing 100_files.zip took 196.21060001850128 milliseconds. Decompressing 1k_files.zip took 1042.0124000012875 milliseconds. Decompressing 5k_files.zip took 4601.827601015568 milliseconds. Decompressing 10k_files.zip took 15453.908199995756 milliseconds.
In order to run the sample:
cd 4.2.0 && npm install && npm start
cd 4.2.1 && npm install && npm start