Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for reducer (0.42 sec)

  1. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

     *
     * <p>As compared with {@link java.util.LinkedHashMap}, this structure places significantly reduced
     * load on the garbage collector by only using a constant number of internal objects.
     *
     * <p>This class should not be assumed to be universally superior to {@code
     * java.util.LinkedHashMap}. Generally speaking, this class reduces object allocation and memory
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableMap.java

        if (tableSize <= BYTE_MAX_SIZE) {
          /*
           * Use 8 bits per entry. The value is unsigned to allow use up to a size of 2^8.
           *
           * The absent indicator of -1 signed becomes 2^8 - 1 unsigned, which reduces the actual max
           * size to 2^8 - 1. However, due to a load factor < 1 the limit is never approached.
           */
          byte[] hashTable = new byte[tableSize];
          Arrays.fill(hashTable, ABSENT);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Hashing.java

       * following conditions:
       *
       * <ul>
       *   <li>You want to assign the same fraction of inputs to each bucket.
       *   <li>When you reduce the number of buckets, you can accept that the most recently added
       *       buckets will be removed first. More concretely, if you are dividing traffic among tasks,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Suppliers.java

        }
    
        @Override
        @ParametricNullness
        public T get() {
          // Another variant of Double Checked Locking.
          //
          // We use two volatile reads. We could reduce this to one by
          // putting our fields into a holder class, but (at least on x86)
          // the extra memory consumption and indirection are more
          // expensive than the extra volatile reads.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

      }
    
      @VisibleForTesting
      @WeakOuter
      final class ValueSet extends Sets.ImprovedAbstractSet<V> implements ValueSetLink<K, V> {
        /*
         * We currently use a fixed load factor of 1.0, a bit higher than normal to reduce memory
         * consumption.
         */
    
        @ParametricNullness private final K key;
        @VisibleForTesting @Nullable ValueEntry<K, V>[] hashTable;
        private int size = 0;
        private int modCount = 0;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/Striped64.java

       * There is no need for a blocking lock; when the lock is not
       * available, threads try other slots (or the base).  During these
       * retries, there is increased contention and reduced locality,
       * which is still better than alternatives.
       *
       * Per-thread hash codes are initialized to random values.
       * Contention and/or table collisions are indicated by failed
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ArrayListMultimap.java

       */
      @Override
      List<V> createCollection() {
        return new ArrayList<>(expectedValuesPerKey);
      }
    
      /**
       * Reduces the memory used by this {@code ArrayListMultimap}, if feasible.
       *
       * @deprecated For a {@link ListMultimap} that automatically trims to size, use {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableSet.java

       *
       * <p><b>Performance note:</b> This method will sometimes recognize that the actual copy operation
       * is unnecessary; for example, {@code copyOf(copyOf(anArrayList))} will copy the data only once.
       * This reduces the expense of habitually making defensive copies at API boundaries. However, the
       * precise conditions for skipping the copy operation are undefined.
       *
       * @throws NullPointerException if any of {@code elements} is null
    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)
  9. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

    /**
     * Tests for {@link ImmutableBiMap}.
     *
     * @author Jared Levy
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class ImmutableBiMapTest extends TestCase {
    
      // TODO: Reduce duplication of ImmutableMapTest code
    
      @J2ktIncompatible
      @GwtIncompatible // suite
      public static Test suite() {
        TestSuite suite = new TestSuite();
    
        suite.addTest(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/Striped64.java

       * There is no need for a blocking lock; when the lock is not
       * available, threads try other slots (or the base).  During these
       * retries, there is increased contention and reduced locality,
       * which is still better than alternatives.
       *
       * Per-thread hash codes are initialized to random values.
       * Contention and/or table collisions are indicated by failed
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
Back to top