This repository was archived by the owner on Jul 31, 2023. It is now read-only.
Commit bf52d9d
authored
Remove
* Remove `convTslice` calls in `Record()`
This is built upon
#1267; that
one should likely merge first. I split this out as it has a small public
API change (to work around circular imports) to avoid issues on the
first PR.
Benchmark relative to #1267:
```
me old time/op new time/op delta
Record0-6 1.74ns ± 4% 1.79ns ± 2% +2.85% (p=0.238 n=5+5)
Record1-6 634ns ± 6% 542ns ± 9% -14.55% (p=0.008 n=5+5)
Record8-6 1.21µs ± 5% 1.23µs ± 2% +1.97% (p=0.254 n=5+5)
Record8_WithRecorder-6 777ns ± 5% 792ns ± 5% +1.97% (p=0.421 n=5+5)
Record8_Parallel-6 1.26µs ±24% 1.22µs ± 2% ~ (p=0.690 n=5+5)
Record8_8Tags-6 1.23µs ± 2% 1.25µs ± 3% ~ (p=0.651 n=5+5)
name old alloc/op new alloc/op delta
Record0-6 0.00B 0.00B ~ (all equal)
Record1-6 120B ± 0% 96B ± 0% -20.00% (p=0.008 n=5+5)
Record8-6 344B ± 0% 320B ± 0% -6.98% (p=0.008 n=5+5)
Record8_WithRecorder-6 424B ± 0% 424B ± 0% ~ (all equal)
Record8_Parallel-6 344B ± 0% 320B ± 0% -6.98% (p=0.008 n=5+5)
Record8_8Tags-6 344B ± 0% 320B ± 0% -6.98% (p=0.008 n=5+5)
name old allocs/op new allocs/op delta
Record0-6 0.00 0.00 ~ (all equal)
Record1-6 3.00 ± 0% 2.00 ± 0% -33.33% (p=0.008 n=5+5)
Record8-6 3.00 ± 0% 2.00 ± 0% -33.33% (p=0.008 n=5+5)
Record8_WithRecorder-6 4.00 ± 0% 4.00 ± 0% ~ (all equal)
Record8_Parallel-6 3.00 ± 0% 2.00 ± 0% -33.33% (p=0.008 n=5+5)
Record8_8Tags-6 3.00 ± 0% 2.00 ± 0% -33.33% (p=0.008 n=5+5)
```
* Refactor to avoid leaking into public APIconvTslice calls in Record() (#1268)1 parent ad0b46e commit bf52d9d
3 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
97 | | - | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
202 | 207 | | |
203 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
204 | 215 | | |
205 | 216 | | |
206 | | - | |
| 217 | + | |
207 | 218 | | |
208 | 219 | | |
209 | 220 | | |
| |||
0 commit comments