- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 249 for perfunc (0.2 sec)
-
pkg/proxy/iptables/number_generated_rules_test.go
} // test the function to mutate endpoint slices epsFunc := func(eps *discovery.EndpointSlice) { for i := range eps.Endpoints { nodeName := fmt.Sprintf("node-%d", i) eps.Endpoints[i].NodeName = &nodeName } } svcs, eps := generateServiceEndpoints(test.services, test.epPerService, epsFunc, svcFunc) if len(svcs) != test.services {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 14:39:54 UTC 2024 - 13.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/stmt.go
case ir.ODEFER: n := n.(*ir.GoDeferStmt) ir.CurFunc.SetHasDefer(true) ir.CurFunc.NumDefers++ if ir.CurFunc.NumDefers > maxOpenDefers || n.DeferAt != nil { // Don't allow open-coded defers if there are more than // 8 defers in the function, since we use a single // byte to record active defers. // Also don't allow if we need to use deferprocat. ir.CurFunc.SetOpenCodedDeferDisallowed(true) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 06 15:42:30 UTC 2023 - 4.7K bytes - Viewed (0) -
pilot/pkg/serviceregistry/util/workloadinstances/index.go
} // NewIndex returns a new Index instance. func NewIndex() Index { return &index{ keyFunc: indexKey, keyToInstance: make(map[string]*model.WorkloadInstance), ipToKeys: make(MultiValueMap), } } // index implements Index. type index struct { mu sync.RWMutex // key function keyFunc func(*model.WorkloadInstance) string // map of namespace/name -> workload instance
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 16 05:45:36 UTC 2023 - 4.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/range.go
// } // order.stmt arranged for a copy of the string variable. ha := a hv1 := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TINT]) hv1t := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TINT]) hv2 := typecheck.TempAt(base.Pos, ir.CurFunc, types.RuneType) // hv1 := 0 init = append(init, ir.NewAssignStmt(base.Pos, hv1, nil)) // hv1 < len(ha)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:33 UTC 2023 - 17.6K bytes - Viewed (0) -
pkg/generated/openapi/cmd/models-schema/main.go
if err != nil { os.Stderr.WriteString(fmt.Sprintf("Failed: %v", err)) os.Exit(1) } } func output() error { refFunc := func(name string) spec.Ref { return spec.MustCreateRef(fmt.Sprintf("#/definitions/%s", friendlyName(name))) } defs := openapi.GetOpenAPIDefinitions(refFunc) schemaDefs := make(map[string]spec.Schema, len(defs)) for k, v := range defs {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:52 UTC 2024 - 2.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go
// The Cache will be caching objects of a given Type and assumes that they // are all stored under ResourcePrefix directory in the underlying database. ResourcePrefix string // KeyFunc is used to get a key in the underlying storage for a given object. KeyFunc func(runtime.Object) (string, error) // GetAttrsFunc is used to get object labels, fields GetAttrsFunc func(runtime.Object) (label labels.Set, field fields.Set, err error)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 51.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/configuration/configuration_manager.go
defaultBootstrapRetries = 5 defaultBootstrapGraceperiod = 5 * time.Second ) var ( ErrNotReady = fmt.Errorf("configuration is not ready") ErrDisabled = fmt.Errorf("disabled") ) type getFunc func() (runtime.Object, error) // When running, poller calls `get` every `interval`. If `get` is // successful, `Ready()` returns ready and `configuration()` returns the
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 06 02:02:38 UTC 2017 - 4.3K bytes - Viewed (0) -
src/cmd/compile/internal/walk/convert.go
if !fromType.IsInterface() && !ir.IsBlank(ir.CurFunc.Nname) { // skip unnamed functions (func _()) if fromType.HasShape() { // Unified IR uses OCONVIFACE for converting all derived types // to interface type. Avoid assertion failure in // MarkTypeUsedInInterface, because we've marked used types // separately anyway. } else { reflectdata.MarkTypeUsedInInterface(fromType, ir.CurFunc.LSym) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 17:28:22 UTC 2023 - 18.2K bytes - Viewed (0) -
src/cmd/compile/internal/walk/walk.go
func Walk(fn *ir.Func) { ir.CurFunc = fn errorsBefore := base.Errors() order(fn) if base.Errors() > errorsBefore { return } if base.Flag.W != 0 { s := fmt.Sprintf("\nbefore walk %v", ir.CurFunc.Sym()) ir.DumpList(s, ir.CurFunc.Body) } walkStmtList(ir.CurFunc.Body) if base.Flag.W != 0 { s := fmt.Sprintf("after walk %v", ir.CurFunc.Sym()) ir.DumpList(s, ir.CurFunc.Body) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 20:56:00 UTC 2024 - 10.4K bytes - Viewed (0) -
src/cmd/compile/internal/walk/closure.go
// Add to Closures for enqueueFunc. It's no longer a proper // closure, but we may have already skipped over it in the // functions list as a non-trivial closure, so this just // ensures it's compiled. ir.CurFunc.Closures = append(ir.CurFunc.Closures, clofn) } func walkClosure(clo *ir.ClosureExpr, init *ir.Nodes) ir.Node { clofn := clo.Func // If no closure vars, don't bother wrapping. if ir.IsTrivialClosure(clo) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 15:56:08 UTC 2023 - 6.5K bytes - Viewed (0)