diff options
author | bptato <nincsnevem662@gmail.com> | 2024-09-10 23:57:24 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-09-11 00:29:22 +0200 |
commit | dea70ee7c2e490396c86074f652021304f595ca7 (patch) | |
tree | 720dac86fb3da4784d9cb4d0b11b3a9f27bf749f /adapter/img/canvas.c | |
parent | 5d0561ab1507acd0c6b18976d34db427f7351433 (diff) | |
download | chawan-dea70ee7c2e490396c86074f652021304f595ca7.tar.gz |
sixel: faster quantization
Reduce eager allocation of whole branches for leaves; now it's done only after the first conflict (or repeated color). This makes quantization ~2x faster for images without large runs of the same color and ~2x slower for images with a lot of those. No noticeable loss in quality. I also disabled refc for the octree and turned the nodes into tagged unions, which again resulted in a ~2x speedup.
Diffstat (limited to 'adapter/img/canvas.c')
0 files changed, 0 insertions, 0 deletions