Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Hit (0.14 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        assertEquals(8, ImmutableSet.chooseTableSize(4));
    
        assertEquals(1 << 29, ImmutableSet.chooseTableSize(1 << 28));
        assertEquals(1 << 29, ImmutableSet.chooseTableSize((1 << 29) * 3 / 5));
    
        // Now we hit the cap
        assertEquals(1 << 30, ImmutableSet.chooseTableSize(1 << 29));
        assertEquals(1 << 30, ImmutableSet.chooseTableSize((1 << 30) - 1));
    
        // Now we've gone too far
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSortedAsList.java

       * TODO(cpovirk): if we start to override indexOf/lastIndexOf under GWT, we'll want some way to
       * override subList to return an ImmutableSortedAsList for better performance. Right now, I'm not
       * sure there's any performance hit from our failure to override subListUnchecked under GWT
       */
      @Override
      ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) {
        ImmutableList<E> parentSubList = super.subListUnchecked(fromIndex, toIndex);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

          // getDeclaredField to throw a NoSuchFieldException when the field is definitely there.
          // For these users fallback to a suboptimal implementation, based on synchronized. This will
          // be a definite performance hit to those users.
          thrownReflectionFailure = reflectionFailure;
          helper = new SynchronizedAtomicHelper();
        }
        ATOMIC_HELPER = helper;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        assertEquals(8, ImmutableSet.chooseTableSize(4));
    
        assertEquals(1 << 29, ImmutableSet.chooseTableSize(1 << 28));
        assertEquals(1 << 29, ImmutableSet.chooseTableSize((1 << 29) * 3 / 5));
    
        // Now we hit the cap
        assertEquals(1 << 30, ImmutableSet.chooseTableSize(1 << 29));
        assertEquals(1 << 30, ImmutableSet.chooseTableSize((1 << 30) - 1));
    
        // Now we've gone too far
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/LongMath.java

       * Each bit is set to 1 for all remainders that indicate divisibility by 2, 3, or 5, so
       * 1, 7, 11, 13, 17, 19, 23, 29 are set to 0. 30 and up don't matter because they won't be hit.
       */
      private static final int SIEVE_30 =
          ~((1 << 1) | (1 << 7) | (1 << 11) | (1 << 13) | (1 << 17) | (1 << 19) | (1 << 23)
              | (1 << 29));
    
      /**
       * Returns {@code true} if {@code n} is a <a
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/Doubles.java

       * inputs. All valid inputs must pass this regex, but it's semantically fine if not all inputs
       * that pass this regex are valid -- only a performance hit is incurred, not a semantics bug.
       */
      @GwtIncompatible // regular expressions
      static final
      java.util.regex.Pattern
          FLOATING_POINT_PATTERN = fpPattern();
    
      @GwtIncompatible // regular expressions
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

       *
       * The Least Recently Used page replacement algorithm was chosen due to its simplicity, high hit
       * rate, and ability to be implemented with O(1) time complexity. The initial LRU implementation
       * operates per-segment rather than globally for increased implementation simplicity. We expect
       * the cache hit rate to be similar to that of a global LRU algorithm.
       */
    
      // Constants
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

            // getDeclaredField to throw a NoSuchFieldException when the field is definitely there.
            // For these users fallback to a suboptimal implementation, based on synchronized. This will
            // be a definite performance hit to those users.
            thrownAtomicReferenceFieldUpdaterFailure = atomicReferenceFieldUpdaterFailure;
            helper = new SynchronizedHelper();
          }
        }
        ATOMIC_HELPER = helper;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/LocalCache.java

       *
       * The Least Recently Used page replacement algorithm was chosen due to its simplicity, high hit
       * rate, and ability to be implemented with O(1) time complexity. The initial LRU implementation
       * operates per-segment rather than globally for increased implementation simplicity. We expect
       * the cache hit rate to be similar to that of a global LRU algorithm.
       */
    
      // Constants
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/LocalCache.java

       *
       * The Least Recently Used page replacement algorithm was chosen due to its simplicity, high hit
       * rate, and ability to be implemented with O(1) time complexity. The initial LRU implementation
       * operates per-segment rather than globally for increased implementation simplicity. We expect
       * the cache hit rate to be similar to that of a global LRU algorithm.
       */
    
      // Constants
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
Back to top