Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 127 for optimizer (0.14 sec)

  1. android/guava/src/com/google/common/base/Preconditions.java

       *
       * The alternative natural refactorings into void or Exception-returning methods are much slower.
       * This is a big deal - we're talking factors of 2-8 in microbenchmarks, not just 10-20%. (This is
       * a hotspot optimizer bug, which should be fixed, but that's a separate, big project).
       *
       * The coding pattern above is heavily used in java.util, e.g. in ArrayList. There is a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Utf8.java

        // Warning to maintainers: this implementation is highly optimized.
        int utf16Length = sequence.length();
        int utf8Length = utf16Length;
        int i = 0;
    
        // This loop optimizes for pure ASCII.
        while (i < utf16Length && sequence.charAt(i) < 0x80) {
          i++;
        }
    
        // This loop optimizes for chars less than 0x800.
        for (; i < utf16Length; i++) {
          char c = sequence.charAt(i);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/DenseImmutableTable.java

    import com.google.j2objc.annotations.WeakOuter;
    import java.util.Map;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /** A {@code RegularImmutableTable} optimized for dense data. */
    @GwtCompatible
    @Immutable(containerOf = {"R", "C", "V"})
    @ElementTypesAreNonnullByDefault
    final class DenseImmutableTable<R, C, V> extends RegularImmutableTable<R, C, V> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 10K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RegularImmutableMap.java

      @SuppressWarnings("unchecked")
      static final ImmutableMap<Object, Object> EMPTY =
          new RegularImmutableMap<>(null, new Object[0], 0);
    
      /*
       * This is an implementation of ImmutableMap optimized especially for Android, which does not like
       * objects per entry.  Instead we use an open-addressed hash table.  This design is basically
       * equivalent to RegularImmutableSet, save that instead of having a hash table containing the
    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)
  5. guava/src/com/google/common/collect/ImmutableMapValues.java

            return entryList.get(index).getValue();
          }
    
          @Override
          ImmutableCollection<V> delegateCollection() {
            return ImmutableMapValues.this;
          }
    
          // redeclare to help optimizers with b/310253115
          @SuppressWarnings("RedundantOverride")
          @Override
          @J2ktIncompatible // serialization
          @GwtIncompatible // serialization
          Object writeReplace() {
    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)
  6. guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java

        return forward.headMultiset(lowerBound, boundType).descendingMultiset();
      }
    
      @Override
      boolean isPartialView() {
        return forward.isPartialView();
      }
    
      // redeclare to help optimizers with b/310253115
      @SuppressWarnings("RedundantOverride")
      @Override
      @J2ktIncompatible // serialization
      Object writeReplace() {
        return super.writeReplace();
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java

        return forward.headMultiset(lowerBound, boundType).descendingMultiset();
      }
    
      @Override
      boolean isPartialView() {
        return forward.isPartialView();
      }
    
      // redeclare to help optimizers with b/310253115
      @SuppressWarnings("RedundantOverride")
      @Override
      @J2ktIncompatible // serialization
      Object writeReplace() {
        return super.writeReplace();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/SingletonImmutableSet.java

      }
    
      @Override
      public final int hashCode() {
        return element.hashCode();
      }
    
      @Override
      public String toString() {
        return '[' + element.toString() + ']';
      }
    
      // redeclare to help optimizers with b/310253115
      @SuppressWarnings("RedundantOverride")
      @Override
      @J2ktIncompatible // serialization
      @GwtIncompatible // serialization
      Object writeReplace() {
        return super.writeReplace();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableMapValues.java

          @Override
          boolean isPartialView() {
            return true;
          }
    
          @Override
          public int size() {
            return entryList.size();
          }
    
          // redeclare to help optimizers with b/310253115
          @SuppressWarnings("RedundantOverride")
          @Override
          @J2ktIncompatible // serialization
          @GwtIncompatible // serialization
          Object writeReplace() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

      protected ArrayBasedUnicodeEscaper(
          ArrayBasedEscaperMap escaperMap,
          int safeMin,
          int safeMax,
          @Nullable String unsafeReplacement) {
        checkNotNull(escaperMap); // GWT specific check (do not optimize)
        this.replacements = escaperMap.getReplacementArray();
        this.replacementsLength = replacements.length;
        if (safeMax < safeMin) {
          // If the safe range is empty, set the range limits to opposite extremes
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.5K bytes
    - Viewed (0)
Back to top