MCPcopy Create free account
hub / github.com/brimdata/super / optimizeParallels

Method optimizeParallels

compiler/optimizer/parallelize.go:140–147  ·  view source on GitHub ↗
(seq dag.Seq)

Source from the content-addressed store, hash-verified

138}
139
140func (o *Optimizer) optimizeParallels(seq dag.Seq) {
141 Walk(seq, func(seq dag.Seq) dag.Seq {
142 for ops := seq; len(ops) >= 2; ops = ops[1:] {
143 o.liftIntoParPaths(ops)
144 }
145 return seq
146 })
147}
148
149// liftIntoParPaths examines seq to see if there's an opportunity to
150// lift operations downstream from a parallel op into its parallel paths to

Callers 2

OptimizeMethod · 0.95
ParallelizeMethod · 0.95

Calls 2

liftIntoParPathsMethod · 0.95
WalkFunction · 0.70

Tested by

no test coverage detected