Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 25 of 25 for concurrencyLevel (0.06 sec)

  1. guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

        // power of (1/concentration) and floor()ed
        max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration));
    
        cache =
            CacheBuilder.newBuilder()
                .concurrencyLevel(segments)
                .maximumSize(maximumSize)
                .build(
                    new CacheLoader<Integer, Integer>() {
                      @Override
                      public Integer load(Integer from) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

           * UnsignedBytesBenchmark. TODO(cpovirk): benchmark this
           */
          /*
           * A CopyOnWriteArraySet<WeakReference> is faster than a newSetFromMap of a MapMaker map with
           * weakKeys() and concurrencyLevel(1), even up to at least 12 cached exception types.
           */
          private static final Set<WeakReference<Class<? extends Exception>>> validClasses =
              new CopyOnWriteArraySet<>();
    
          @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

           * UnsignedBytesBenchmark. TODO(cpovirk): benchmark this
           */
          /*
           * A CopyOnWriteArraySet<WeakReference> is faster than a newSetFromMap of a MapMaker map with
           * weakKeys() and concurrencyLevel(1), even up to at least 12 cached exception types.
           */
          private static final Set<WeakReference<Class<? extends Exception>>> validClasses =
              new CopyOnWriteArraySet<>();
    
          @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         * @param concurrencyLevel the estimated number of threads for concurrent updates
         * @return a new instance of {@link ConcurrentHashMap}
         * @see ConcurrentHashMap#ConcurrentHashMap(int, float, int)
         */
        public static <K, V> ConcurrentHashMap<K, V> newConcurrentHashMap(final int initialCapacity, final float loadFactor,
                final int concurrencyLevel) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

      public void testReloadAfterSimulatedValueReclamation() throws ExecutionException {
        CountingLoader countingLoader = new CountingLoader();
        LoadingCache<Object, Object> cache =
            CacheBuilder.newBuilder().concurrencyLevel(1).weakValues().build(countingLoader);
    
        Object key = new Object();
        assertNotNull(cache.getUnchecked(key));
    
        CacheTesting.simulateValueReclamation(cache, key);
    
    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