Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CostLimit (0.17 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    			expectCalcCostExceedsLimit: costLimit,
    			setMaxElements:             10,
    			expectedSetCost:            352,
    		},
    		{
    			name:                       "O(n^3) loop with numbers",
    			schemaGenerator:            genArrayWithRule("number", "self.all(x, self.all(y, self.all(z, true)))"),
    			expectCalcCostExceedsLimit: costLimit,
    			setMaxElements:             10,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go

    	}
    	return multiplyWithOverflowGuard(cr.MaxCost, cr.MaxCardinality)
    }
    
    func getCostErrorMessage(costName string, expressionCost, costLimit uint64) string {
    	exceedFactor := float64(expressionCost) / float64(costLimit)
    	var factor string
    	if exceedFactor > 100.0 {
    		// if exceedFactor is greater than 2 orders of magnitude, the rule is likely O(n^2) or worse
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 82.6K bytes
    - Viewed (0)
Back to top