Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hashFloodingDetected (0.2 sec)

  1. guava-tests/benchmark/com/google/common/collect/ImmutableSetHashFloodingDetectionBenchmark.java

                return true;
              }
            }
            return false;
          }
        };
    
        abstract boolean hashFloodingDetected(Object[] array);
      }
    
      @Benchmark
      public int detect(int reps) {
        int count = 0;
        for (int i = 0; i < reps; i++) {
          if (impl.hashFloodingDetected(tables[i & 0xFF])) {
            count++;
          }
        }
        return count;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jun 03 20:16:35 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSet.java

            maxRunBeforeFallback = maxRunBeforeFallback(targetTableSize);
            expandTableThreshold = (int) (DESIRED_LOAD_FACTOR * targetTableSize);
          }
          return hashFloodingDetected(hashTable) ? new JdkBackedSetBuilderImpl<E>(this) : this;
        }
    
        @Override
        ImmutableSet<E> build() {
          switch (distinct) {
            case 0:
              return of();
            case 1:
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
Back to top