Skip to content

Performance deterioration in 1.0.0 in comparison to 0.86.0 #289

@decipherer

Description

@decipherer

We have been using version 0.86 of sharpziplib up till now. After updating to 1.0.0 we notice some welcomed improvements, but unfortunately also a big performance deterioration.

Steps to reproduce

  • Read a file using ZipInputStream in version 0.86 and record the duration
  • Then read the same file using ZipInputStream in version 1.0 and record the duration
  • Compare the two durations

Expected behavior

The two durations should be roughly the same

Actual behavior

The duration for version 1.0.0 is consistently a lot higher.
As an example, on my machine I notice the following difference in duration:

90MB file:
Version 0.86.0: 0.62s
Version 1.0.0: 3.3s

2GB file:
Version 0.86.0: 21.47s
Version 1.0.0: 81.31s

Both files were zipped using 7zip, using deflate, compression level normal , 32Kb Dictionary size, 32 Word size
Version 1.0.0 seems to be about 4-5 times slower in decompressing a file than version 0.86.0

Version of SharpZipLib

0.86.0.518 vs 1.0.0.999

Obtained from (only keep the relevant lines)

  • Package installed using NuGet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions