Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 114 for memory (0.32 sec)

  1. android/guava/src/com/google/common/escape/ArrayBasedCharEscaper.java

     * highest valued character that requires escaping. For example a replacement map containing the
     * single character '{@code \}{@code u1000}' will require approximately 16K of memory. If you need
     * to create multiple escaper instances that have the same character replacement mapping consider
     * using {@link ArrayBasedEscaperMap}.
     *
     * @author Sven Mawson
     * @author David Beaumont
     * @since 15.0
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 6.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Comparators.java

       * Stream.of("foo", "quux", "banana", "elephant")
       *     .collect(least(2, comparingInt(String::length)))
       * // returns {"foo", "quux"}
       * }</pre>
       *
       * <p>This {@code Collector} uses O(k) memory and takes expected time O(n) (worst-case O(n log
       * k)), as opposed to e.g. {@code Stream.sorted(comparator).limit(k)}, which currently takes O(n
       * log n) time and O(n) space.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/MapMaker.java

       * having a hash table of size eight. Providing a large enough estimate at construction time
       * avoids the need for expensive resizing operations later, but setting this value unnecessarily
       * high wastes memory.
       *
       * @throws IllegalArgumentException if {@code initialCapacity} is negative
       * @throws IllegalStateException if an initial capacity was already set
       */
      @CanIgnoreReturnValue
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableMultimap.java

       * user-created objects that aren't accessible via this multimap's methods. This is generally used
       * to determine whether {@code copyOf} implementations should make an explicit copy to avoid
       * memory leaks.
       */
      boolean isPartialView() {
        return map.isPartialView();
      }
    
      // accessors
    
      @Override
      public boolean containsKey(@CheckForNull Object key) {
        return map.containsKey(key);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 25.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ByteSource.java

          //    internal char array (hard to avoid using StringBuilder)
          // 2. we avoid extra copies into temporary buffers altogether
          // The downside is that this will cause us to store the file bytes in memory twice for a short
          // amount of time.
          return new String(ByteSource.this.read(), charset);
        }
    
        @Override
        public String toString() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/TrustedListenableFutureTask.java

       * triggered by cancel(). For details, see the comments on the fields of TimeoutFuture.
       *
       * <p>{@code volatile} is required for j2objc transpiling:
       * https://developers.google.com/j2objc/guides/j2objc-memory-model#atomicity
       */
      @CheckForNull private volatile InterruptibleTask<?> task;
    
      TrustedListenableFutureTask(Callable<V> callable) {
        this.task = new TrustedFutureInterruptibleTask(callable);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 5.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/Files.java

      public
      static HashCode hash(File file, HashFunction hashFunction) throws IOException {
        return asByteSource(file).hash(hashFunction);
      }
    
      /**
       * Fully maps a file read-only in to memory as per {@link
       * FileChannel#map(java.nio.channels.FileChannel.MapMode, long, long)}.
       *
       * <p>Files are mapped from offset 0 to its length.
       *
       * <p>This only works for files ≤ {@link Integer#MAX_VALUE} bytes.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/Striped64.java

       *
       * Table entries are of class Cell; a variant of AtomicLong padded
       * to reduce cache contention on most processors. Padding is
       * overkill for most Atomics because they are usually irregularly
       * scattered in memory and thus don't interfere much with each
       * other. But Atomic objects residing in arrays will tend to be
       * placed adjacent to each other, and so will most often share
    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)
  9. android/guava/src/com/google/common/base/Suppliers.java

          // 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.
          long nanos = expirationNanos;
          long now = System.nanoTime();
          if (nanos == 0 || now - nanos >= 0) {
    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)
  10. guava/src/com/google/common/collect/Interners.java

       * interned, and so does not prevent these instances from being garbage-collected. This most
       * likely does not perform as well as {@link #newStrongInterner}, but is the best alternative when
       * the memory usage of that implementation is unacceptable.
       */
      @GwtIncompatible("java.lang.ref.WeakReference")
      public static <E> Interner<E> newWeakInterner() {
        return newBuilder().weak().build();
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 5.9K bytes
    - Viewed (1)
Back to top