-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage/engine: batch allocations in MVCCIterate #6175
storage/engine: batch allocations in MVCCIterate #6175
Conversation
@bdarnell The effects of these allocation reductions do add up. In the table below "old" refers to 61be7da which is just before the recent spate of optimizations.
|
Review status: 0 of 2 files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. storage/engine/mvcc.go, line 555 [r1] (raw file): storage/engine/mvcc.go, line 738 [r1] (raw file): storage/engine/mvcc.go, line 1589 [r1] (raw file): Comments from Reviewable |
e7f64c1
to
f0b687e
Compare
Review status: 0 of 2 files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. storage/engine/mvcc.go, line 555 [r1] (raw file): storage/engine/mvcc.go, line 738 [r1] (raw file): storage/engine/mvcc.go, line 1589 [r1] (raw file): Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. storage/engine/mvcc.go, line 555 [r1] (raw file): What about passing a Comments from Reviewable |
name old time/op new time/op delta KVScan1_SQL-32 206µs ± 4% 208µs ± 6% ~ (p=0.365 n=19+20) KVScan10_SQL-32 291µs ± 6% 287µs ± 5% ~ (p=0.134 n=20+20) KVScan100_SQL-32 1.00ms ± 9% 0.95ms ± 8% -4.73% (p=0.000 n=20+19) KVScan1000_SQL-32 7.80ms ± 4% 7.51ms ± 8% -3.66% (p=0.000 n=20+19) KVScan10000_SQL-32 76.9ms ± 4% 73.4ms ± 6% -4.59% (p=0.000 n=19+18) name old allocs/op new allocs/op delta KVScan1_SQL-32 208 ± 0% 205 ± 0% -1.44% (p=0.000 n=20+20) KVScan10_SQL-32 299 ± 0% 260 ± 0% -13.04% (p=0.000 n=19+18) KVScan100_SQL-32 1.14k ± 0% 0.74k ± 0% -34.72% (p=0.000 n=20+20) KVScan1000_SQL-32 9.45k ± 0% 5.46k ± 0% -42.26% (p=0.000 n=19+18) KVScan10000_SQL-32 92.5k ± 0% 52.6k ± 0% -43.18% (p=0.000 n=20+19)
Squash before merging.
f0b687e
to
001eb10
Compare
Review status: 0 of 2 files reviewed at latest revision, 3 unresolved discussions, some commit checks pending. storage/engine/mvcc.go, line 555 [r1] (raw file): I've pushed another commit that adds a parameter and return value to Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. storage/engine/mvcc.go, line 555 [r1] (raw file): Comments from Reviewable |
This change is