Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for warmup (0.05 sec)

  1. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

      }
    
      private List<Entry<Object, Object>> warmUp(LoadingCache<Object, Object> cache) {
        return warmUp(cache, WARMUP_MIN, WARMUP_MAX);
      }
    
      /**
       * Returns the entries that were added to the map, so they won't fall out of a map with weak or
       * soft references until the caller drops the reference to the returned entries.
       */
      private List<Entry<Object, Object>> warmUp(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       * fulfills the requests (e.g., a remote server) needs "warmup" time, rather than being
       * immediately accessed at the stable (maximum) rate.
       *
       * <p>The returned {@code RateLimiter} starts in a "cold" state (i.e. the warmup period will
       * follow), and if it is left unused for long enough, it will return to that state.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

      }
    
      private List<Entry<Object, Object>> warmUp(LoadingCache<Object, Object> cache) {
        return warmUp(cache, WARMUP_MIN, WARMUP_MAX);
      }
    
      /**
       * Returns the entries that were added to the map, so they won't fall out of a map with weak or
       * soft references until the caller drops the reference to the returned entries.
       */
      private List<Entry<Object, Object>> warmUp(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/RateLimiter.java

       * fulfills the requests (e.g., a remote server) needs "warmup" time, rather than being
       * immediately accessed at the stable (maximum) rate.
       *
       * <p>The returned {@code RateLimiter} starts in a "cold" state (i.e. the warmup period will
       * follow), and if it is left unused for long enough, it will return to that state.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        for (int i = 0; i < 8; i++) {
          limiter.acquire(); // // #1
        }
        stopwatch.sleepMillis(4500); // #2: back to cold state (warmup period + repay last acquire)
        for (int i = 0; i < 3; i++) { // only three steps, we're somewhere in the warmup period
          limiter.acquire(); // #3
        }
    
        limiter.setRate(4.0); // double the rate!
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        for (int i = 0; i < 8; i++) {
          limiter.acquire(); // // #1
        }
        stopwatch.sleepMillis(4500); // #2: back to cold state (warmup period + repay last acquire)
        for (int i = 0; i < 3; i++) { // only three steps, we're somewhere in the warmup period
          limiter.acquire(); // #3
        }
    
        limiter.setRate(4.0); // double the rate!
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/EmptyCachesTest.java

              UnsupportedOperationException.class, () -> cache.asMap().keySet().addAll(asList(1, 2)));
        }
      }
    
    
      public void testKeySet_clear() {
        for (LoadingCache<Object, Object> cache : caches()) {
          warmUp(cache, 0, 100);
    
          Set<Object> keys = cache.asMap().keySet();
          keys.clear();
          checkEmpty(keys);
          checkEmpty(cache);
        }
      }
    
      public void testKeySet_empty_remove() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

              UnsupportedOperationException.class, () -> cache.asMap().keySet().addAll(asList(1, 2)));
        }
      }
    
    
      public void testKeySet_clear() {
        for (LoadingCache<Object, Object> cache : caches()) {
          warmUp(cache, 0, 100);
    
          Set<Object> keys = cache.asMap().keySet();
          keys.clear();
          checkEmpty(keys);
          checkEmpty(cache);
        }
      }
    
      public void testKeySet_empty_remove() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

        IdentityLoader<Integer> loader = identityLoader();
        LoadingCache<Integer, Integer> cache =
            CacheBuilder.newBuilder().concurrencyLevel(1).maximumSize(10).build(loader);
        CacheTesting.warmUp(cache, 0, 10);
        Set<Integer> keySet = cache.asMap().keySet();
        assertThat(keySet).containsExactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
    
        // re-order
        getAll(cache, asList(0, 1, 2));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 15K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       *          |                / .
       *          |               /  .   ← "warmup period" is the area of the trapezoid between
       *          |              /   .     thresholdPermits and maxPermits
       *          |             /    .
       *          |            /     .
       *          |           /      .
       *   stable +----------/  WARM .
       * interval |          .   UP  .
       *          |          . PERIOD.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 19.3K bytes
    - Viewed (0)
Back to top