puff.c (muscle7.61) | : | puff.c (muscle7.62) | ||
---|---|---|---|---|
skipping to change at line 20 | skipping to change at line 20 | |||
* important than speed, such as bootstrap applications. For typical deflate | * important than speed, such as bootstrap applications. For typical deflate | |||
* data, zlib's inflate() is about four times as fast as puff(). zlib's | * data, zlib's inflate() is about four times as fast as puff(). zlib's | |||
* inflate compiles to around 20K on my machine, whereas puff.c compiles to | * inflate compiles to around 20K on my machine, whereas puff.c compiles to | |||
* around 4K on my machine (a PowerPC using GNU cc). If the faster decode() | * around 4K on my machine (a PowerPC using GNU cc). If the faster decode() | |||
* function here is used, then puff() is only twice as slow as zlib's | * function here is used, then puff() is only twice as slow as zlib's | |||
* inflate(). | * inflate(). | |||
* | * | |||
* All dynamically allocated memory comes from the stack. The stack required | * All dynamically allocated memory comes from the stack. The stack required | |||
* is less than 2K bytes. This code is compatible with 16-bit int's and | * is less than 2K bytes. This code is compatible with 16-bit int's and | |||
* assumes that long's are at least 32 bits. puff.c uses the short data type, | * assumes that long's are at least 32 bits. puff.c uses the short data type, | |||
* assumed to be 16 bits, for arrays in order to to conserve memory. The code | * assumed to be 16 bits, for arrays in order to conserve memory. The code | |||
* works whether integers are stored big endian or little endian. | * works whether integers are stored big endian or little endian. | |||
* | * | |||
* In the comments below are "Format notes" that describe the inflate process | * In the comments below are "Format notes" that describe the inflate process | |||
* and document some of the less obvious aspects of the format. This source | * and document some of the less obvious aspects of the format. This source | |||
* code is meant to supplement RFC 1951, which formally describes the deflate | * code is meant to supplement RFC 1951, which formally describes the deflate | |||
* format: | * format: | |||
* | * | |||
* http://www.zlib.org/rfc-deflate.html | * http://www.zlib.org/rfc-deflate.html | |||
*/ | */ | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |