Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

The Doszip Commander version 2.24 available (Announce)

posted by nidud E-mail, Norway, 17.02.2012, 13:25

Download: https://sourceforge.net/projects/doszip/files/

Changes in 2.24 - 17 Feb 2012
- fixed memory leak in Unzip
- fixed bug in Unzip -- CRC error message
- fixed bug in File Search -- Hex string (F6)
- fixed bug in Directory Information -- missing info
- fixed bug in (missing) Command line (Alt-F9)
- fixed bug on reading .INI file above 4096 byte
- added line numbers to File Search dialog
- added formated output to File Search dialog (F10)
- added fast reading of large .ZIP files
- added fast decompression of .ZIP files

The CRC error message after decompressing large .ZIP files was a bug in the "fast compression" function implemented earlier.

By tracking down this bug a profile of the decompressing routine was made, and it turns out that most of the time was used on regular string operations in the read process.

The recursive process reads a subdirectory from the archive and decompresses the files, and then processes the subdirs. The function will allocate new file blocks on each level (max 5000 for each subdir), and this will eat all memory available and then some. To compensate for the memory usage the read process was using a small local buffer, and this adds (time) to the problem. If the archive has 100000 files, and the subdir contains one directory, 100000 files must be tested, and 99999 files are excluded.

The read function will now use a large buffer if memory is available, and most of the string operations have been inlined or optimised for speed.

Result: read time reduced to around 35%, and decompression to around 50%.

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 363 users online (0 registered, 363 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum