Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Precompute (0.06 sec)

  1. android/guava/src/com/google/common/base/CharMatcher.java

       * memory, so it is only likely to be worthwhile if the precomputed matcher is queried very often.
       *
       * <p>This method has no effect (returns {@code this}) when called in GWT: it's unclear whether a
       * precomputed matcher is faster, but it certainly would consume more memory (which doesn't seem
       * like a worthwhile tradeoff in a browser).
       */
      public CharMatcher precomputed() {
        return Platform.precomputeCharMatcher(this);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 53.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        int iterations = 10;
        WeakReference<Object> ref = new WeakReference<>(null);
        int expectedComputations = 0;
        for (int i = 0; i < iterations; i++) {
          // The entry should get garbage collected and recomputed.
          Object oldValue = ref.get();
          if (oldValue == null) {
            expectedComputations++;
          }
          ref = new WeakReference<>(cache.getUnchecked(1));
          oldValue = null;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
Back to top