Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for segmentSize (0.14 sec)

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

      private static void checkInitialCapacity(
          int concurrencyLevel, int initialCapacity, int segmentSize) {
        MapMakerInternalMap<Object, Object, ?, ?> map =
            makeMap(
                createMapMaker().concurrencyLevel(concurrencyLevel).initialCapacity(initialCapacity));
        for (int i = 0; i < map.segments.length; i++) {
          assertEquals(segmentSize, map.segments[i].table.length());
        }
      }
    
      public void testSetWeakKeys() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

      private static void checkInitialCapacity(
          int concurrencyLevel, int initialCapacity, int segmentSize) {
        MapMakerInternalMap<Object, Object, ?, ?> map =
            makeMap(
                createMapMaker().concurrencyLevel(concurrencyLevel).initialCapacity(initialCapacity));
        for (int i = 0; i < map.segments.length; i++) {
          assertEquals(segmentSize, map.segments[i].table.length());
        }
      }
    
      public void testSetWeakKeys() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/MapMakerInternalMap.java

        if (segmentCapacity * segmentCount < initialCapacity) {
          ++segmentCapacity;
        }
    
        int segmentSize = 1;
        while (segmentSize < segmentCapacity) {
          segmentSize <<= 1;
        }
    
        for (int i = 0; i < this.segments.length; ++i) {
          this.segments[i] = createSegment(segmentSize);
        }
      }
    
      /** Returns a fresh {@link MapMakerInternalMap} as specified by the given {@code builder}. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        if (segmentCapacity * segmentCount < initialCapacity) {
          ++segmentCapacity;
        }
    
        int segmentSize = 1;
        while (segmentSize < segmentCapacity) {
          segmentSize <<= 1;
        }
    
        for (int i = 0; i < this.segments.length; ++i) {
          this.segments[i] = createSegment(segmentSize);
        }
      }
    
      /** Returns a fresh {@link MapMakerInternalMap} as specified by the given {@code builder}. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/LocalCache.java

        int segmentCapacity = initialCapacity / segmentCount;
        if (segmentCapacity * segmentCount < initialCapacity) {
          ++segmentCapacity;
        }
    
        int segmentSize = 1;
        while (segmentSize < segmentCapacity) {
          segmentSize <<= 1;
        }
    
        if (evictsBySize()) {
          // Ensure sum of segment max weights = overall max weights
          long maxSegmentWeight = maxWeight / segmentCount + 1;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

          int concurrencyLevel, int initialCapacity, int segmentSize) {
        LocalCache<Object, Object> map =
            makeLocalCache(
                createCacheBuilder()
                    .concurrencyLevel(concurrencyLevel)
                    .initialCapacity(initialCapacity));
        for (int i = 0; i < map.segments.length; i++) {
          assertEquals(segmentSize, map.segments[i].table.length());
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/LocalCacheTest.java

          int concurrencyLevel, int initialCapacity, int segmentSize) {
        LocalCache<Object, Object> map =
            makeLocalCache(
                createCacheBuilder()
                    .concurrencyLevel(concurrencyLevel)
                    .initialCapacity(initialCapacity));
        for (int i = 0; i < map.segments.length; i++) {
          assertEquals(segmentSize, map.segments[i].table.length());
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
Back to top