Differences From Artifact [562e8d5f98]:
- File src/huffman_tree.m — part of check-in [0509d7a844] at 2019-01-03 19:13:03 on branch trunk — Update copyright (user: js, size: 3553) [annotate] [blame] [check-ins using]
To Artifact [e648d95cb9]:
- File
src/huffman_tree.m
— part of check-in
[6a0bf8be32]
at
2019-03-20 21:04:36
on branch trunk
— Force inline tryReadBits and of_huffman_tree_walk
This gives a significant performance improvement, cutting decompression
time almost in half. (user: js, size: 3072) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
130 131 132 133 134 135 136 | struct of_huffman_tree *tree = newTree(); tree->value = value; return tree; } | < < < < < < < < < < < < < < < < < < < < < < < | 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | struct of_huffman_tree *tree = newTree(); tree->value = value; return tree; } void of_huffman_tree_release(struct of_huffman_tree *tree) { for (uint_fast8_t i = 0; i < 2; i++) if OF_LIKELY (tree->leaves[i] != NULL) of_huffman_tree_release(tree->leaves[i]); |
︙ | ︙ |