Commit e8256d3
Always use uint8 for t2count and reverseH in buildBinaryFuse
The values stored in these slices are independent of the fingerprint
size. It looks like maybe a mistake when the code was converted to use
generics.
This improves build performance a bit (and reduces mem usage) for
16-bit fingerprints. On an M1 laptop:
```
name old time/op new time/op delta
BinaryFusePopulate/16/n=1000000-10 29.4ms ± 1% 28.1ms ± 1% -4.25% (p=0.000 n=10+10)
name old MKeys/s new MKeys/s delta
BinaryFusePopulate/16/n=1000000-10 34.1 ± 1% 35.6 ± 1% +4.44% (p=0.000 n=10+10)
name old alloc/op new alloc/op delta
BinaryFusePopulate/16/n=1000000-10 28.1MB ± 0% 26.0MB ± 0% -7.58% (p=0.000 n=8+9)
name old allocs/op new allocs/op delta
BinaryFusePopulate/16/n=1000000-10 8.00 ± 0% 8.00 ± 0% ~ (all equal)
```1 parent 9e0c9da commit e8256d3
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
| 75 | + | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| |||
0 commit comments