navidrome/core/artwork/blurhash
Deluan 5bdeaad95e perf(artwork): eliminate per-pixel allocations in blurhash encoding
Normalize the downscaled image to *image.RGBA once and read Pix directly
(the image.At interface boxed a color per pixel — ~16k allocs/encode), and
replace per-pixel math.Pow with a 256-entry sRGB-to-linear table. ~72%
faster (3.0ms -> 0.86ms for covers >=300px), 19 allocs/op. Benchmark
included.
2026-07-17 11:33:16 -04:00
..
blurhash.go perf(artwork): eliminate per-pixel allocations in blurhash encoding 2026-07-17 11:33:16 -04:00
blurhash_bench_test.go fix(artwork): don't memoize transient blurhash failures; track image freshness with cache disabled 2026-07-17 11:20:41 -04:00
blurhash_suite_test.go feat(artwork): add blurhash encoder package 2026-07-16 21:51:04 -04:00
blurhash_test.go feat(artwork): add blurhash encoder package 2026-07-16 21:51:04 -04:00