Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 149 for worst (0.04 sec)

  1. guava/src/com/google/common/collect/Comparators.java

       *     .collect(least(2, comparingInt(String::length)))
       * // returns {"foo", "quux"}
       * }</pre>
       *
       * <p>This {@code Collector} uses O(k) memory and takes expected time O(n) (worst-case O(n log
       * k)), as opposed to e.g. {@code Stream.sorted(comparator).limit(k)}, which currently takes O(n
       * log n) time and O(n) space.
       *
       * @throws IllegalArgumentException if {@code k < 0}
       * @since 22.0
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 08:42:51 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/cache_test.go

    	cache := newSimpleCache(fakeClock, time.Second, "providerName")
    
    	t.Run("AllocsPerRun test", func(t *testing.T) {
    		key, err := generateKey(encryptedDEKSourceMaxSize) // simulate worst case EDEK
    		if err != nil {
    			t.Fatal(err)
    		}
    
    		f := func() {
    			out := cache.keyFunc(key)
    			if len(out) != sha256.Size {
    				t.Errorf("Expected %d bytes, got %d", sha256.Size, len(out))
    			}
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 31 20:26:58 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. src/os/path_windows.go

    		// Note that getwdCache might be outdated if the working directory has been
    		// changed without using os.Chdir, i.e. using syscall.Chdir directly or cgo.
    		// This is fine, as the worst that can happen is that we fail to fix the path.
    		getwdCache.Lock()
    		if getwdCache.dir == "" {
    			// Init the working directory cache.
    			getwdCache.dir, _ = syscall.Getwd()
    		}
    		pathLength += len(getwdCache.dir) + 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/library/cost.go

    			return &checker.CallEstimate{CostEstimate: sz.MultiplyByCostFactor(2 * common.StringTraversalCostFactor), ResultSize: &size}
    		}
    	case "split":
    		if target != nil {
    			sz := l.sizeEstimate(*target)
    
    			// Worst case size is where is that a separator of "" is used, and each char is returned as a list element.
    			max := sz.Max
    			if len(args) > 1 {
    				if v := args[1].Expr().AsLiteral(); v != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/RegularContiguousSet.java

      }
    
      @Override
      public boolean contains(@CheckForNull Object object) {
        if (object == null) {
          return false;
        }
        try {
          @SuppressWarnings("unchecked") // The worst case is usually CCE, which we catch.
          C c = (C) object;
          return range.contains(c);
        } catch (ClassCastException e) {
          return false;
        }
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. security/pkg/server/ca/server.go

    		ca:             ca,
    		monitoring:     newMonitoringMetrics(),
    	}
    
    	if len(features.CATrustedNodeAccounts) > 0 {
    		// TODO: do we need some way to delayed readiness until this is synced? Probably
    		// Worst case is we deny some requests though which are retried
    		server.nodeAuthorizer = NewMulticlusterNodeAuthenticator(features.CATrustedNodeAccounts, controller)
    	}
    	return server, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 17:35:26 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/RegularContiguousSet.java

      }
    
      @Override
      public boolean contains(@CheckForNull Object object) {
        if (object == null) {
          return false;
        }
        try {
          @SuppressWarnings("unchecked") // The worst case is usually CCE, which we catch.
          C c = (C) object;
          return range.contains(c);
        } catch (ClassCastException e) {
          return false;
        }
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. tensorflow/cc/ops/while_loop.cc

      // defining the frame) and that they are executed once per loop iteration.
      //
      // TODO(skyewm): the control dep will be added to all nodes in the cond graph.
      // This is at best unnecessary, and at worst may prevent different parts of
      // different loop iterations from executing in parallel.
      Scope cond_scope =
          scope.NewSubScope("cond").WithControlDependencies(inputs[0]);
      Output raw_cond_out;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 01:01:21 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. src/encoding/ascii85/ascii85.go

    			if nb == 1 {
    				return 0, 0, CorruptInputError(len(src))
    			}
    			for i := nb; i < 5; i++ {
    				// The short encoding truncated the output value.
    				// We have to assume the worst case values (digit 84)
    				// in order to ensure that the top bits are correct.
    				v = v*85 + 84
    			}
    			for i := 0; i < nb-1; i++ {
    				dst[ndst] = byte(v >> 24)
    				v <<= 8
    				ndst++
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/optimizing-performance/build-cache/common_caching_problems.adoc

    The configuration file might change infrequently, or only change when some other (correctly tracked) input changes as well.
    The worst that could happen is that your task doesn't execute when it should.
    Developers can always re-run the build with `clean`, and "fix" their builds for the price of a slow rebuild.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 07 01:37:51 UTC 2023
    - 19.2K bytes
    - Viewed (0)
Back to top