4 ms·
Looks like a for loop iterating over each pixel one row at a time. What makes this fast?
by BuzzwordBingo 6y ago
Looks like a for loop iterating over each pixel one row at a time.
What makes this fast?
- srgpqt 6y agoDunning-Kruger syndrome, probably.
- viraptor 6y agoIt's fastest because others are slower. It doesn't necessarily mean it's fast :)
- time0ut 6y agoIt does at least parallelize the work across available cores.
- arendtio 6y agoThis is the line that makes the difference: https://github.com/n7olkachev/imgdiff/blob/master/pkg/imgdiff/imgdiff.go#L37 https://github.com/n7olkachev/imgdiff/blob/master/pkg/imgdif...