Tuesday, August 07, 2007

Vista Zip Support

Taken from here and based on Vista's support for creating a zip file with your choice of contents, I assume XP might be a bit worse (after all, they've had many years to fix it up).

I captured a Process Monitor trace of the compression of a single file and counted the associated operations. Just for this simple case, Explorer opened the target ZIP file 14 times, 12 of those before it had actually created the file and therefore with NOT FOUND results, and performed directory look ups of the target 19 times. It was also redundant with the source file, opening it 28 times and querying the file’s basic properties 17 times.


Zipfldr.dll, the Explorer file compression DLL, was in most of the stack traces, meaning that the compression engine itself was ultimately responsible for the waste. Further, the number of repetitious operations explodes when you compress multiple files.

Optimisation needed much?

No comments:

Post a Comment