Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 191 for worst (0.08 sec)

  1. android/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}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. src/runtime/mem_windows.go

    	// on all our VirtualAlloc calls, try freeing successively smaller pieces until
    	// we manage to free something, and then repeat. This ends up being O(n log n)
    	// in the worst case, but that's fast enough.
    	for n > 0 {
    		small := n
    		for small >= 4096 && stdcall3(_VirtualFree, uintptr(v), small, _MEM_DECOMMIT) == 0 {
    			small /= 2
    			small &^= 4096 - 1
    		}
    		if small < 4096 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/aot/benchmark.cc

      snprintf(buf, kBufSize, "Mean of %2.0f%% best:", best_ratio * 100);
      std::string label_best(buf);
      std::vector<std::pair<std::string, double>> groups = {
          {"Best:", sorted_us.front()},
          {"Worst:", sorted_us.back()},
          {"Median:", sorted_us[count_us / 2]},
          {"Mean:", sum_us / count_us},
          {std::move(label_trimmed), sum_us_trimmed / count_us_trimmed},
          {std::move(label_best), sum_us_best / count_us_best},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 12 19:45:29 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. 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)
  5. guava/src/com/google/common/collect/ForwardingSortedMap.java

      protected class StandardKeySet extends Maps.SortedKeySet<K, V> {
        /** Constructor for use by subclasses. */
        public StandardKeySet() {
          super(ForwardingSortedMap.this);
        }
      }
    
      // unsafe, but worst case is a CCE or NPE is thrown, which callers will be expecting
      @SuppressWarnings({"unchecked", "nullness"})
      static int unsafeCompare(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. android/guava/src/com/google/common/collect/ForwardingSortedMap.java

      protected class StandardKeySet extends Maps.SortedKeySet<K, V> {
        /** Constructor for use by subclasses. */
        public StandardKeySet() {
          super(ForwardingSortedMap.this);
        }
      }
    
      // unsafe, but worst case is a CCE or NPE is thrown, which callers will be expecting
      @SuppressWarnings({"unchecked", "nullness"})
      static int unsafeCompare(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  10. 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)
Back to top