Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 220 for Memory (0.17 seconds)

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

     * java.util.LinkedHashMap}. Generally speaking, this class reduces object allocation and memory
     * consumption at the price of moderately increased constant factors of CPU. Only use this class
     * when there is a specific reason to prioritize memory over CPU.
     *
     * @author Louis Wasserman
     */
    @J2ktIncompatible // no support for access-order mode in LinkedHashMap delegate
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 14:59:07 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

        Fire<V> fire = new Fire<>(result);
        result.timer = scheduledExecutor.schedule(fire, time, unit);
        delegate.addListener(fire, directExecutor());
        return result;
      }
    
      /*
       * Memory visibility of these fields. There are two cases to consider.
       *
       * 1. visibility of the writes to these fields to Fire.run:
       *
       * The initial write to delegateRef is made definitely visible via the semantics of
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/io/ByteArrayDataOutput.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.io.DataOutput;
    import java.io.IOException;
    
    /**
     * An extension of {@code DataOutput} for writing to in-memory byte arrays; its methods offer
     * identical functionality but do not throw {@link IOException}.
     *
     * @author Jayaprabhakar Kadarkarai
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 27 20:25:25 GMT 2024
    - 1.9K bytes
    - Click Count (0)
  4. guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java

     */
    final class Platform {
      static CharMatcher precomputeCharMatcher(CharMatcher matcher) {
        // CharMatcher.precomputed() produces CharMatchers that are maybe a little
        // faster (and that's debatable), but definitely more memory-hungry. We're
        // choosing to turn .precomputed() into a no-op in GWT, because it doesn't
        // seem to be a worthwhile tradeoff in a browser.
        return matcher;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 03 21:52:39 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

            byte[] data = "Hello, World!".getBytes();
            ContentCache cache = new ContentCache(data);
    
            // Memory-based cache close should not throw exception
            cache.close();
    
            // Should still be able to get input stream after close for memory cache
            try (InputStream stream = cache.getInputStream()) {
                assertNotNull(stream);
            }
        }
    
        @Test
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 15.9K bytes
    - Click Count (0)
  6. architecture/standards/0002-avoid-using-java-serialization.md

    # ADR-0002 - Avoid using Java serialization
    
    ## Status
    
    - ACCEPTED on 2023-12-01
    
    ## Context
    
    In Gradle we often need to serialize in-memory objects for caching, or to transmit them across process barriers, etc.
    Java serialization is one way to implement this, however, despite its simplicity of implementation, it has several drawbacks:
    
    - **Performance:**
    Java's built-in serialization mechanism is often slower compared to other serialization solutions.
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 05 14:05:45 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java

                    String.format(Locale.ROOT, "Caught an exception in %s.  Shutting down.", t),
                    e);
          } catch (Throwable errorInLogging) { // sneaky checked exception
            // If logging fails, e.g. due to missing memory, at least try to log the
            // message and the cause for the failed logging.
            System.err.println(e.getMessage());
            System.err.println(errorInLogging.getMessage());
          } finally {
            runtime.exit(1);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 10 21:03:40 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  8. 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
       */
      private volatile @Nullable InterruptibleTask<?> task;
    
      TrustedListenableFutureTask(Callable<V> callable) {
        this.task = new TrustedFutureInterruptibleTask(callable);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 11 18:52:30 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/io/CharStreams.java

       * {@link Reader} classes and Java versions, but both methods read the entire input into memory
       * immediately, so we discourage use of both when memory usage is a concern.
       *
       * @param r the object to read from
       * @return a mutable {@link List} containing all the lines
       * @throws IOException if an I/O error occurs
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 29 13:56:24 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/CompactHashMap.java

     * <p>This class should not be assumed to be universally superior to {@code java.util.HashMap}.
     * Generally speaking, this class reduces object allocation and memory consumption at the price of
     * moderately increased constant factors of CPU. Only use this class when there is a specific reason
     * to prioritize memory over CPU.
     *
     * @author Louis Wasserman
     * @author Jon Noack
     */
    @GwtIncompatible // not worth using in GWT for now
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 39.6K bytes
    - Click Count (0)
Back to Top