Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some tweaks to the modular palette heuristics:
Results
QOI test set
Before:
benchmark_xl v0.10.0 453f112 [NEON]
12 total threads, 17088 tasks, 6 threads, 2 inner threads
After:
benchmark_xl v0.10.0 8c7f3833 [NEON]
12 total threads, 17088 tasks, 6 threads, 2 inner threads
Overall a 0.25% compression improvement at default effort.
Most of the bytes in the full QOI testset go to photographic images where nothing or not much changes; for non-photographic images (especially small ones) the improvement can be larger.
For example, for the specific subset
icon64(a set of 64x64 rendered vector icons), the improvement is quite significant:icon64
Before:
benchmark_xl v0.10.0 453f112 [NEON]
12 total threads, 1278 tasks, 12 threads, 0 inner threads
After:
benchmark_xl v0.10.0 8c7f3833 [NEON]
12 total threads, 1278 tasks, 12 threads, 0 inner threads
(9.5% compression improvement at default effort for these icons)
Set of large manga images
Before:
benchmark_xl v0.10.0 453f112 [NEON]
12 total threads, 246 tasks, 0 threads, 8 inner threads
After:
benchmark_xl v0.10.0 8c7f3833 [NEON]
12 total threads, 246 tasks, 0 threads, 8 inner threads
About 1% smaller at default effort.