Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for Precompute (0.04 seconds)

  1. android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

      void pollAndAdd(int reps) {
        for (int i = 0; i < reps; i++) {
          // TODO(kevinb): precompute random #s?
          queue.add(queue.poll() ^ random.nextInt());
        }
      }
    
      @Benchmark
      void populate(int reps) {
        for (int i = 0; i < reps; i++) {
          queue.clear();
          for (int j = 0; j < size; j++) {
            // TODO(kevinb): precompute random #s?
            queue.add(random.nextInt());
          }
        }
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 4.4K bytes
    - Click Count (0)
  2. guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java

    /**
     * @author Jesse Wilson
     */
    final class Platform {
      static CharMatcher precomputeCharMatcher(CharMatcher matcher) {
        // CharMatcher.precomputed() produces CharMatchers that are maybe a little
        // 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;
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Feb 03 21:52:39 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  3. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildEnvironment.kt

     *          since this whole object is kept in the classloader between builds.
     *          Anything that changes must be in a val with a get() method that recomputes the value each time.
     */
    object BuildEnvironment {
    
        /**
         * A selection of environment variables injected into the environment by the `codeql-env.sh` script.
         */
        private
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Sat Dec 21 08:58:33 GMT 2024
    - 4.7K bytes
    - Click Count (1)
Back to Top