Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for Overhead (0.94 sec)

  1. android/guava/src/com/google/common/graph/InvalidatableSet.java

      @Override
      public int hashCode() {
        return delegate.hashCode();
      }
    
      private void validate() {
        // Don't use checkState(), because we don't want the overhead of generating the error message
        // unless it's actually going to be used; validate() is called for all set method calls, so it
        // needs to be fast.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java

    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.util.Arrays;
    import java.util.Comparator;
    import java.util.Random;
    
    /**
     * A benchmark to determine the overhead of sorting with {@link Ordering#from(Comparator)}, or with
     * {@link Ordering#natural()}, as opposed to using the inlined {@link Arrays#sort(Object[])}
     * implementation, which uses {@link Comparable#compareTo} directly.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TransformedIterator.java

    import java.util.Iterator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An iterator that transforms a backing iterator; for internal use. This avoids the object overhead
     * of constructing a {@link com.google.common.base.Function Function} for internal methods.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jul 09 17:31:04 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TransformedListIterator.java

    import java.util.ListIterator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An iterator that transforms a backing list iterator; for internal use. This avoids the object
     * overhead of constructing a {@link Function} for internal methods.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Nov 21 21:43:01 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/collect/IteratorBenchmark.java

     *
     * @author David Richter
     */
    public class IteratorBenchmark {
      @Param({"0", "1", "16", "256", "4096", "65536"})
      int size;
    
      // use concrete classes to remove any possible polymorphic overhead?
      Object[] array;
      ArrayList<Object> arrayList;
      LinkedList<Object> linkedList;
    
      @BeforeExperiment
      void setUp() {
        array = new Object[size];
        arrayList = Lists.newArrayListWithCapacity(size);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/collect/IteratorBenchmark.java

     *
     * @author David Richter
     */
    public class IteratorBenchmark {
      @Param({"0", "1", "16", "256", "4096", "65536"})
      int size;
    
      // use concrete classes to remove any possible polymorphic overhead?
      Object[] array;
      ArrayList<Object> arrayList;
      LinkedList<Object> linkedList;
    
      @BeforeExperiment
      void setUp() {
        array = new Object[size];
        arrayList = Lists.newArrayListWithCapacity(size);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       *
       * <p>Although all tasks are immediately executed in the thread that submitted the task, this
       * {@code ExecutorService} imposes a small locking overhead on each task submission in order to
       * implement shutdown and termination behavior.
       *
       * <p>Because of the nature of single-thread execution, the methods {@code scheduleAtFixedRate}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 26 22:04:00 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       *
       * <p>Although all tasks are immediately executed in the thread that submitted the task, this
       * {@code ExecutorService} imposes a small locking overhead on each task submission in order to
       * implement shutdown and termination behavior.
       *
       * <p>Because of the nature of single-thread execution, the methods {@code scheduleAtFixedRate}
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 26 22:04:00 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java

    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.util.Arrays;
    import java.util.Comparator;
    import java.util.Random;
    
    /**
     * A benchmark to determine the overhead of sorting with {@link Ordering#from(Comparator)}, or with
     * {@link Ordering#natural()}, as opposed to using the inlined {@link Arrays#sort(Object[])}
     * implementation, which uses {@link Comparable#compareTo} directly.
     *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Stopwatch.java

      }
    
      /**
       * Returns the current elapsed time shown on this stopwatch, expressed in the desired time unit,
       * with any fraction rounded down.
       *
       * <p><b>Note:</b> the overhead of measurement can be more than a microsecond, so it is generally
       * not useful to specify {@link TimeUnit#NANOSECONDS} precision here.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
Back to top