Repository navigation
Commit 786d167
committed
perf: pre-size the map result array
Growing the array, or `Array.from({ length })`, costs measurably more on
the small collections `map` and `parallel` are called with.1 parent dcf49e3 commit 786d167
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 159 | + | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
0 commit comments