Assemble lane results in chunk order without sorting
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"path"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
@@ -333,12 +332,8 @@ func (r *Runner) runExtractJob(ctx context.Context, input RunInput, doc *source.
|
||||
}
|
||||
|
||||
func finalizeLaneExtract(state *laneExtractState) {
|
||||
indexes := make([]int, 0, len(state.results))
|
||||
for index := range state.results {
|
||||
indexes = append(indexes, index)
|
||||
}
|
||||
sort.Ints(indexes)
|
||||
for _, index := range indexes {
|
||||
// Materialization assigns dense ordinals; finalization follows all lane jobs.
|
||||
for index := 0; index < len(state.results); index++ {
|
||||
result := state.results[index]
|
||||
state.values = append(state.values, result.value)
|
||||
state.diagnostics = append(state.diagnostics, result.diagnostics...)
|
||||
|
||||
Reference in New Issue
Block a user