Radically unbloated DEFLATE/zlib/gzip compression/decompression library. Can decompress any gzip/zlib data, and offers simplified compressor which produces gzip-compatible output, while requiring much less resources (and providing less compression ratio of course).
Distance tree can have only 30 valid codes (32 total if balanced Huffman tree is considered). That's unlike literal/length tree which can 286 valid, 288 total entries. Using the same structure for both types of trees, reserving space for 288 codes is thus not efficient. Using adhoc structure for distance tree can provide noticeable space savings.