- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for calcHeight (0.39 sec)
-
src/regexp/syntax/parse.go
for _, re := range p.stack { p.checkHeight(re) } } if p.calcHeight(re, true) > maxHeight { panic(ErrNestingDepth) } } func (p *parser) calcHeight(re *Regexp, force bool) int { if !force { if h, ok := p.height[re]; ok { return h } } h := 1 for _, sub := range re.Sub { hsub := p.calcHeight(sub, false) if h < 1+hsub { h = 1 + hsub } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 13:59:01 UTC 2024 - 52.1K bytes - Viewed (0) -
pkg/test/loadbalancersim/loadbalancer/edf.go
weight: weight, deadline: e.currentDeadline + 1/weight, index: e.currentIndex, }) } // PickAndAdd picks an available entry and re-adds it with the given weight calculation func (e *EDF) PickAndAdd(calcWeight func(prevWeight float64, value any) float64) any { // if no available entry, return nil if len(*e.pq) == 0 { return nil } entry := heap.Pop(e.pq).(*Entry)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jul 20 19:13:32 UTC 2023 - 2.8K bytes - Viewed (0)