Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for worthwhile (0.15 sec)

  1. guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java

        // faster (and that's debatable), but definitely more memory-hungry. We're
        // choosing to turn .precomputed() into a no-op in GWT, because it doesn't
        // seem to be a worthwhile tradeoff in a browser.
        return matcher;
      }
    
      static String formatCompact4Digits(double value) {
        return toPrecision(value, 4);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon May 27 13:56:56 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/RegularImmutableList.java

      }
    
      @Override
      public Spliterator<E> spliterator() {
        return Spliterators.spliterator(array, SPLITERATOR_CHARACTERISTICS);
      }
    
      // TODO(lowasser): benchmark optimizations for equals() and see if they're worthwhile
    
      // redeclare to help optimizers with b/310253115
      @SuppressWarnings("RedundantOverride")
      @Override
      @J2ktIncompatible // serialization
      @GwtIncompatible // serialization
      Object writeReplace() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 20:19:12 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableList.java

        // requireNonNull is safe because we guarantee that the first `size` elements are non-null.
        return (E) requireNonNull(array[index]);
      }
    
      // TODO(lowasser): benchmark optimizations for equals() and see if they're worthwhile
    
      // redeclare to help optimizers with b/310253115
      @SuppressWarnings("RedundantOverride")
      @Override
      @J2ktIncompatible // serialization
      @GwtIncompatible // serialization
      Object writeReplace() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. src/math/rand/v2/pcg.go

    	//
    	// Numpy's PCG multiplies by the 64-bit value cheapMul
    	// instead of the 128-bit value used here and in the official PCG code.
    	// This does not seem worthwhile, at least for Go: not having any high
    	// bits in the multiplier reduces the effect of low bits on the highest bits,
    	// and it only saves 1 multiply out of 3.
    	// (On 32-bit systems, it saves 1 out of 6, since Mul64 is doing 4.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/log/slog/internal/benchmarks/handlers.go

    // Because sending to a channel can be expensive due to locking,
    // we simulate a lock-free queue by adding the Record to a ring buffer.
    // Omitting the locking makes this little more than a copy of the Record,
    // but that is a worthwhile thing to measure because Records are on the large
    // side. Since nothing actually reads from the ring buffer, it can handle an
    // arbitrary number of Records without either blocking or allocation.
    type asyncHandler struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 12 20:33:37 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/RegularImmutableTable.java

      /** @throws IllegalArgumentException if {@code existingValue} is not null. */
      /*
       * We could have declared this method 'static' but the additional compile-time checks achieved by
       * referencing the type variables seem worthwhile.
       */
      final void checkNoDuplicate(R rowKey, C columnKey, @CheckForNull V existingValue, V newValue) {
        checkArgument(
            existingValue == null,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/RegularImmutableTable.java

      /** @throws IllegalArgumentException if {@code existingValue} is not null. */
      /*
       * We could have declared this method 'static' but the additional compile-time checks achieved by
       * referencing the type variables seem worthwhile.
       */
      final void checkNoDuplicate(R rowKey, C columnKey, @CheckForNull V existingValue, V newValue) {
        checkArgument(
            existingValue == null,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  8. src/cmd/internal/gcprog/gcprog.go

    		panic("gcprog: invalid Ptr index")
    	}
    	w.ZeroUntil(index)
    	if w.debug != nil {
    		fmt.Fprintf(w.debug, "gcprog: ptr at %d\n", index)
    	}
    	w.lit(1)
    }
    
    // ShouldRepeat reports whether it would be worthwhile to
    // use a Repeat to describe c elements of n bits each,
    // compared to just emitting c copies of the n-bit description.
    func (w *Writer) ShouldRepeat(n, c int64) bool {
    	// Should we lay out the bits directly instead of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Comparators.java

      // Note: 90% of the time we don't add type parameters or wildcards that serve only to "tweak" the
      // desired return type. However, *nested* generics introduce a special class of problems that we
      // think tip it over into being worthwhile.
      public static <T extends @Nullable Object, S extends T> Comparator<Iterable<S>> lexicographical(
          Comparator<T> comparator) {
        return new LexicographicalOrdering<S>(checkNotNull(comparator));
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Comparators.java

      // Note: 90% of the time we don't add type parameters or wildcards that serve only to "tweak" the
      // desired return type. However, *nested* generics introduce a special class of problems that we
      // think tip it over into being worthwhile.
      public static <T extends @Nullable Object, S extends T> Comparator<Iterable<S>> lexicographical(
          Comparator<T> comparator) {
        return new LexicographicalOrdering<S>(checkNotNull(comparator));
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 08:42:51 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top