Commit 941e6aa
committed
Preallocate slice in update_test.go
Use make() with a known capacity instead of an empty slice literal,
so the append loop doesn't have to grow the backing array.1 parent 22456f0 commit 941e6aa
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
0 commit comments