n7olkachev/imgdiff
View on GitHub ↗ ★ 1,703 Go
Faster than the fastest in the world pixel-by-pixel image difference tool.
5 mentions on Hacker News by 5 people: 1 story, 4 comments · first 2020-12-12 · latest 2020-12-13
20082026
-
This is the line that makes the difference: https://github.com/n7olkachev/imgdiff/blob/master/pkg/imgdif...
comment by arendtio · 2020-12-13 · in Imgdiff: Faster than the fastest pixel-by-pixel image difference tool -
Worth noting it's ~100-lines of Go code that's quite readable: https://github.com/n7olkachev/imgdiff/blob/master/pkg/imgdif... https://github.com/n7olkachev/imgdiff/blob/master/pkg/yiq/de...
comment by alpb · 2020-12-13 · in Imgdiff: Faster than the fastest pixel-by-pixel image difference tool -
https://github.com/n7olkachev/imgdiff/blob/9b2a87e1b729c70b5... Yep, uses as many goroutines as the number of CPUs, that's about it. Saying it's 3x faster or whatever in "benchmarks" without even saying what CPU is used in the benchmarks…
comment by oefrha · 2020-12-13 · in Imgdiff: Faster than the fastest pixel-by-pixel image difference tool -
Even before you get into GPU, it looks like you could do the normalisation here https://github.com/n7olkachev/imgdiff/blob/master/pkg/yiq/de... using _mm_mul_ps or _mm256_mul_ps depending on availability instead of standard math. (CPU…
comment by viraptor · 2020-12-13 · in Imgdiff: Faster than the fastest pixel-by-pixel image difference tool