[Deflate] Replace computation of static tree codes from lenghts with precomputed codes

This commit is contained in:
Timofey Solomko
2022-05-21 23:00:36 +03:00
parent f06858029b
commit 2b47fb7f49
5 changed files with 170 additions and 33 deletions
@@ -31,7 +31,6 @@ final class EncodingTree {
codingIndices[code.symbol] = CodingIndex(treeCode: treeCode, bitSize: code.bits)
}
self.codingIndices = codingIndices
}
func code(symbol: Int) {