This project is read-only.

Use MemoryMappedFile to increase Brute Force on zip file with dotnetzip C#

Feb 10, 2015 at 6:13 AM
I want to increase the number of attempts to open ZIP file and my biggest delay is in IO. I thought to use MemoryMappedFile and I was able to improve performance by 20% only.

My CPU usage is only 20% because I got stuck in the IO.

The first time I used dotnetzip i used it like that
zip1 = ZipFile.Read(filename);
After that I decided to use MemoryMappedFile and i use it like that
using (MemoryMappedFile memoryMapped = MemoryMappedFile.CreateFromFile(filename, FileMode.Open))
    var viewStream = memoryMapped.CreateViewStream();
    zip1 = ZipFile.Read(viewStream);
I improved it by 20% but I think it should be much much more. Does anyone have an idea? I use it on no more than 10MB zip file size.