Dominik Honnef
ad2b6ded3b
Use bits.OnesCount64 when available
...
Benchmark on i7-2600k, which has the POPCNT instruction:
name old time/op new time/op delta
DistanceIdentical-8 5.08ns ± 0% 1.01ns ± 1% -80.07% (p=0.008 n=5+5)
DistanceDifferent-8 81.5ns ± 2% 1.0ns ± 0% -98.76% (p=0.016 n=5+4)
Benchmark on Cavium Octeon, a MIPS64 platform with no dedicated
instruction:
name old time/op new time/op delta
DistanceIdentical-2 120ns ± 6% 144ns ± 5% +19.93% (p=0.008 n=5+5)
DistanceDifferent-2 656ns ± 4% 144ns ± 4% -78.09% (p=0.008 n=5+5)
2018-05-02 23:52:38 +09:00
Gustavo Brunoro
71a79d6ce7
added serialization unit tests
2017-11-17 09:56:54 +09:00
Gustavo Brunoro
40b64eda79
adds hex serialization methods to ImageHash
...
The ToString and FromString methods create a string representation
of an ImageHash, following the format:
`<first letter of type>:<hex representation of hash`
2017-11-17 09:56:54 +09:00
Dong-hee Na
22bcbf7685
goimagehash: Make go report card happy.
2017-08-04 01:05:13 +09:00
Dong-hee Na
b969cb59dc
goimagehash: Fix typo.
2017-08-03 22:40:42 +09:00
Dong-hee Na
2b9c664be8
Update docs.
2017-07-31 23:29:35 +09:00
Dong-hee Na
7aba8954cd
[goimagehash] First implement.
2017-07-31 22:47:14 +09:00