Commit 13f37fa
committed
block: remove unnecessary CompressAndChecksum allocation
This allocation snuck in during the block package refactors.
```
│ old.txt │ new.txt │
│ allocs/op │ allocs/op vs base │
Writer/format=(Pebble,v2)/block=4.0KB/filter=true/compression=NoCompression-10 18.985k ± 0% 9.533k ± 0% -49.79% (p=0.000 n=10)
Writer/format=(Pebble,v2)/block=4.0KB/filter=true/compression=Snappy-10 18.991k ± 0% 9.536k ± 0% -49.79% (p=0.000 n=10)
Writer/format=(Pebble,v2)/block=4.0KB/filter=true/compression=ZSTD-10 66.29k ± 0% 56.84k ± 0% -14.25% (p=0.000 n=10)
Writer/format=(Pebble,v2)/block=4.0KB/filter=false/compression=NoCompression-10 18.974k ± 0% 9.521k ± 0% -49.82% (p=0.000 n=10)
Writer/format=(Pebble,v2)/block=4.0KB/filter=false/compression=Snappy-10 18.978k ± 0% 9.525k ± 0% -49.81% (p=0.000 n=10)
Writer/format=(Pebble,v2)/block=4.0KB/filter=false/compression=ZSTD-10 66.27k ± 0% 56.83k ± 0% -14.26% (p=0.000 n=10)
Writer/format=(Pebble,v2)/block=32KB/filter=true/compression=NoCompression-10 2.377k ± 0% 1.218k ± 0% -48.76% (p=0.000 n=10)
Writer/format=(Pebble,v2)/block=32KB/filter=true/compression=Snappy-10 2.379k ± 0% 1.220k ± 0% -48.72% (p=0.000 n=10)
Writer/format=(Pebble,v2)/block=32KB/filter=true/compression=ZSTD-10 8.184k ± 0% 7.024k ± 0% -14.17% (p=0.000 n=10)
Writer/format=(Pebble,v2)/block=32KB/filter=false/compression=NoCompression-10 2.365k ± 0% 1.207k ± 0% -48.96% (p=0.000 n=10)
Writer/format=(Pebble,v2)/block=32KB/filter=false/compression=Snappy-10 2.366k ± 0% 1.208k ± 0% -48.95% (p=0.000 n=10)
Writer/format=(Pebble,v2)/block=32KB/filter=false/compression=ZSTD-10 8.172k ± 0% 7.011k ± 0% -14.21% (p=0.000 n=10)
```
Fix #4090.1 parent a685eea commit 13f37fa
4 files changed
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
127 | | - | |
| 128 | + | |
128 | 129 | | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | | - | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
139 | | - | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
| 257 | + | |
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
| 522 | + | |
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1106 | 1106 | | |
1107 | 1107 | | |
1108 | 1108 | | |
1109 | | - | |
| 1109 | + | |
1110 | 1110 | | |
1111 | 1111 | | |
1112 | 1112 | | |
| |||
0 commit comments