Very slow compression with "bestspeed" level VB.NET

May 29, 2012 at 6:51 PM
Edited May 29, 2012 at 6:56 PM

Hello

I try to compress a PDF file of 3.5 MB with this vb.net code (2010):

Using zip As ZipFile = New ZipFile()
  zip.AddFile("c:\serveur\clusif.pdf", "")
  zip.CompressionLevel = Zlib.CompressionLevel.BestSpeed
  zip.Save("c:\serveur\compress.zip")
End Using

Result: 2 minutes 10 but with winrar some few secondes

With stream it the same result, very long time.

If you have an idea to boost ?

thanks