Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 126 for NCases (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	c.Lock()
    	defer c.Unlock()
    
    	c.dispatching = true
    	// We are reusing the slice to avoid memory reallocations in every
    	// dispatchEvent() call. That may prevent Go GC from freeing items
    	// from previous phases that are sitting behind the current length
    	// of the slice, but there is only a limited number of those and the
    	// gain from avoiding memory allocations is much bigger.
    	c.watchersBuffer = c.watchersBuffer[:0]
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  2. src/index/suffixarray/sais2.go

    }
    
    func sais_8_64(text []byte, textMax int, sa, tmp []int64) {
    	if len(sa) != len(text) || len(tmp) < textMax {
    		panic("suffixarray: misuse of sais_8_64")
    	}
    
    	// Trivial base cases. Sorting 0 or 1 things is easy.
    	if len(text) == 0 {
    		return
    	}
    	if len(text) == 1 {
    		sa[0] = 0
    		return
    	}
    
    	// Establish slices indexed by text character
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/serviceregistry_test.go

    			Phase: v1.PodRunning,
    		},
    	}
    	setPodReady(basePod)
    	baseNode := &v1.Node{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:   "node",
    			Labels: map[string]string{},
    		},
    	}
    	cases := []struct {
    		name     string
    		pod      *v1.Pod
    		node     *v1.Node
    		obj      config.Config
    		expected *core.Locality
    	}{
    		{
    			name:     "no locality",
    			pod:      basePod,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_attacher_test.go

    		createPV        bool
    		stageUnstageSet bool
    		shouldFail      bool
    		watchTimeout    time.Duration
    		exitError       error
    		unsetClient     bool
    	}{
    		// PV agnostic path positive test cases
    		{
    			testName:        "success, json file exists",
    			volID:           "project/zone/test-vol1",
    			deviceMountPath: "plugins/csi/" + generateSha("project/zone/test-vol1") + "/globalmount",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/CharMatcher.java

       * on {@link Platform} so that we can have different behavior in GWT.
       *
       * <p>This implementation tries to be smart in a number of ways. It recognizes cases where the
       * negation is cheaper to precompute than the matcher itself; it tries to build small hash tables
       * for matchers that only match a few characters, and so on. In the worst-case scenario, it
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  6. src/math/big/int_test.go

    		}
    	}
    }
    
    func TestQuoStepD6(t *testing.T) {
    	// See Knuth, Volume 2, section 4.3.1, exercise 21. This code exercises
    	// a code path which only triggers 1 in 10^{-19} cases.
    
    	u := &Int{false, nat{0, 0, 1 + 1<<(_W-1), _M ^ (1 << (_W - 1))}}
    	v := &Int{false, nat{5, 2 + 1<<(_W-1), 1 << (_W - 1)}}
    
    	r := new(Int)
    	q, r := new(Int).QuoRem(u, v, r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  7. pkg/proxy/nftables/proxier.go

    		}
    
    		// Set up external traffic handling (if any "external" destinations are
    		// enabled). All captured traffic for all external destinations should
    		// jump to externalTrafficChain, which will handle some special cases and
    		// then jump to externalPolicyChain.
    		if usesExternalTrafficChain {
    			if !svcInfo.ExternalPolicyLocal() {
    				// If we are using non-local endpoints we need to masquerade,
    				// in case we cross nodes.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    			q.Format = BinarySI
    			if c.RandBool() {
    				dec := &inf.Dec{}
    				q.d = infDecAmount{Dec: dec}
    				dec.SetScale(0)
    				dec.SetUnscaled(c.Int63())
    				return
    			}
    			// Be sure to test cases like 1Mi
    			dec := &inf.Dec{}
    			q.d = infDecAmount{Dec: dec}
    			dec.SetScale(0)
    			dec.SetUnscaled(c.Int63n(1024) << uint(10*c.Intn(5)))
    			return
    		}
    		if c.RandBool() {
    			q.Format = DecimalSI
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    	// This comes at the end of execution, after the reply has been released toward
    	// the client.
    	// The evaluation code below does not take this into account.
    	// In cases where `padDuration` makes a difference,
    	// set the `expectedAverages` field of `uniformScenario`.
    	padDuration time.Duration
    	// When true indicates that only half the specified number of
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  10. pkg/kubelet/pod_workers.go

    	workerBackOffPeriodJitterFactor = 0.5
    
    	// backoff period when transient error occurred.
    	backOffOnTransientErrorPeriod = time.Second
    )
    
    // podSyncStatus tracks per-pod transitions through the three phases of pod
    // worker sync (setup, terminating, terminated).
    type podSyncStatus struct {
    	// ctx is the context that is associated with the current pod sync.
    	// TODO: remove this from the struct by having the context initialized
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 13:22:37 UTC 2024
    - 74.8K bytes
    - Viewed (0)
Back to top