Fix nthTransformer parts slice preallocation (#4734)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Use make([]NthParts, 0, len(indexes)) so the slice starts empty with reserved capacity. The previous length-len(indexes) allocation left leading zero NthParts entries before appended elements.
authored by cui · committed by GitHub · parent 2202481 · Browse files · 1 file+1 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+1 added−1 removed
- other:+1 added−1 removed