home *** CD-ROM | disk | FTP | other *** search
-
- April 6, 1989
- Note: This file contains:
-
- LZHUF.C Source code in 'C'
-
- LZHUF.EXE Compiled with Microsoft C, Version 5.1.
- Maximum optimization (-Ox) used.
-
-
-
- %: 213115 S10/ 16-32 Bit
- 06-Apr-89 06:42:57
- Sb: %213112-LZHUF source code
- Fm: Dennis Vallianos 70406,1163
- To: Sysop Irv Hoff 76701,117
-
- I spent a little time with the LZHUF.C source code today and can report
- the following:
-
- It compiles without change using Turbo C (1.0) or Microsoft C (5.1).
- The code is close to ANSI, so should compile ok with any C compiler
- that adheres to the standard.
-
- The compressed files produced appear to be exactly the same as those
- produced by LHARC, based on some very limited visual observation.
- LHARC adds a longer header before the compressed code in order to
- accommodate multiple files in an LZH file, so that has to be discarded
- before comparing the actual files. The header produced by LZHUF is 4
- bytes, while on LHARC it is variable, from about 22-30 bytes. The rest
- of the program appear identical from my preliminary observations.
-
- The use of assembly language optimization in LHARC is obvious from the
- results I got from both programs. The LZHUF source code compiles to a
- 30k LZHUF.EXE file while LHARC.EXE is under 20k (which includes a full
- screent of options, etc.) Compress and decompress times for the SALT.DOC
- file from Telix 3.11:
-
-
- SALT.DOC 186,437
-
- ARC601 84.962 14.50 to make 8.81 to extract
- PKZIP 092 65,559 18.89 to make 4.31 to extract
-
- LHARC 59,425 37.32 to make 10.65 to extract
- LZHUF 59,384 135.34 to make 23.23 to extract
-
-
- So it appears Yoshi has achieved a significant reduction in LHARC.EXE
- executable size (even with the additional options such as making a self-
- extracting file, multiple file handling, etc.) as well as running
- about 3-1/2 times faster to generate the file and twice as fast to
- extract/uncompress the file.
-
- Yoshi's additional work to speed up LZHUF is pretty impressive, but this
- LZHUF.C program allows anybody interested in compression to start at the
- same place he did.