You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously the base.Comparer struct was copied into the Iterator. As the
Comparer and its fields have grown, the cost of this copy and the eventual
zeroing of this structure have grown too. This commit switches to storing just
a pointer to the DB's Comparer.
```
goos: darwin
goarch: arm64
pkg: github.com/cockroachdb/pebble
cpu: Apple M1 Pro
│ prev.txt │ head.txt │
│ sec/op │ sec/op vs base │
NewIterClose/1-10 1.251µ ± 2% 1.213µ ± 0% -3.04% (p=0.000 n=10)
NewIterClose/10-10 6.591µ ± 2% 6.466µ ± 1% -1.90% (p=0.004 n=10)
NewIterClose/100-10 95.87µ ± 0% 93.27µ ± 2% -2.71% (p=0.001 n=10)
geomean 9.246µ 9.010µ -2.55%
```
0 commit comments