Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 117 for expensive (0.18 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        if ((!features.contains(IteratorFeature.SUPPORTS_REMOVE) && removes > 1)
            || (stimuli.length >= 5 && removes > 2)) {
          // removes are the most expensive thing to test, since they often throw exceptions with stack
          // traces, so we test them a bit less aggressively
          return;
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

      }
    
      /**
       * Returns an immutable <i>view</i> of this array's values as a {@code List}; note that {@code
       * int} values are boxed into {@link Integer} instances on demand, which can be very expensive.
       * The returned list should be used once and discarded. For any usages beyond that, pass the
       * returned list to {@link com.google.common.collect.ImmutableList#copyOf(Collection)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        if ((!features.contains(IteratorFeature.SUPPORTS_REMOVE) && removes > 1)
            || (stimuli.length >= 5 && removes > 2)) {
          // removes are the most expensive thing to test, since they often throw exceptions with stack
          // traces, so we test them a bit less aggressively
          return;
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ByteSource.java

        return Optional.absent();
      }
    
      /**
       * Returns the size of this source in bytes, even if doing so requires opening and traversing an
       * entire stream. To avoid a potentially expensive operation, see {@link #sizeIfKnown}.
       *
       * <p>The default implementation calls {@link #sizeIfKnown} and returns the value if present. If
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

      }
    
      /**
       * Returns an immutable <i>view</i> of this array's values as a {@code List}; note that {@code
       * double} values are boxed into {@link Double} instances on demand, which can be very expensive.
       * The returned list should be used once and discarded. For any usages beyond that, pass the
       * returned list to {@link com.google.common.collect.ImmutableList#copyOf(Collection)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

      }
    
      /**
       * Returns an immutable <i>view</i> of this array's values as a {@code List}; note that {@code
       * long} values are boxed into {@link Long} instances on demand, which can be very expensive. The
       * returned list should be used once and discarded. For any usages beyond that, pass the returned
       * list to {@link com.google.common.collect.ImmutableList#copyOf(Collection) ImmutableList.copyOf}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/QuantilesTest.java

        }
    
        // Assert that the dataset contains the same elements after the in-place computation (although
        // they may be reordered). We only do this for one index rather than for all indexes, as it is
        // quite expensive (quadratic in the size of PSEUDORANDOM_DATASET).
        double[] dataset = Doubles.toArray(PSEUDORANDOM_DATASET);
        @SuppressWarnings("unused")
        double actual = percentiles().index(33).computeInPlace(dataset);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/QuantilesTest.java

        }
    
        // Assert that the dataset contains the same elements after the in-place computation (although
        // they may be reordered). We only do this for one index rather than for all indexes, as it is
        // quite expensive (quadratic in the size of PSEUDORANDOM_DATASET).
        double[] dataset = Doubles.toArray(PSEUDORANDOM_DATASET);
        @SuppressWarnings("unused")
        double actual = percentiles().index(33).computeInPlace(dataset);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  9. src/bytes/bytes.go

    			// the cutover is about 16 byte skips.
    			// TODO: if large prefixes of sep are matching
    			// we should cutover at even larger average skips,
    			// because Equal becomes that much more expensive.
    			// This code does not take that effect into account.
    			j := bytealg.IndexRabinKarp(s[i:], sep)
    			if j < 0 {
    				return -1
    			}
    			return i + j
    		}
    	}
    	return -1
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Preconditions.java

     *   double d = sqrt(-1.0);
     * }
     * }</pre>
     *
     * <p>would be flagged as having called {@code sqrt()} with an illegal argument.
     *
     * <h3>Performance</h3>
     *
     * <p>Avoid passing message arguments that are expensive to compute; your code will always compute
     * them, even though they usually won't be needed. If you have such arguments, use the conventional
     * if/throw idiom instead.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
Back to top