Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for optimizations (0.09 sec)

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

        checkElementIndex(index, size);
        // requireNonNull is safe because we guarantee that the first `size` elements are non-null.
        return (E) requireNonNull(array[index]);
      }
    
      // TODO(lowasser): benchmark optimizations for equals() and see if they're worthwhile
    
      // redeclare to help optimizers with b/310253115
      @SuppressWarnings("RedundantOverride")
      @Override
      @J2ktIncompatible // serialization
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

          frequency.set(0);
        }
        backingMap.clear();
        size = 0L;
      }
    
      @Override
      int distinctElements() {
        return backingMap.size();
      }
    
      // Optimizations - Query Operations
    
      @Override
      public int size() {
        return Ints.saturatedCast(size);
      }
    
      @Override
      public Iterator<E> iterator() {
        return new MapBasedMultisetIterator();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

           * doesn't need access to the futures again, so we can just pass `null`.
           *
           * TODO(b/112550045): Allocating a single, cheaper listener is (I think) only an optimization.
           * If we make some other optimizations, this one will no longer be necessary. The optimization
           * could actually hurt in some cases, as it forces us to keep all inputs in memory until the
           * final input completes.
           */
          @RetainedLocalRef
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingRequest.java

         */
        ModelCache getModelCache();
    
        /**
         * Sets the model cache to use for reuse of previously built models. This is an optional component that serves
         * performance optimizations.
         *
         * @param modelCache The model cache to use, may be {@code null}.
         * @return This request, never {@code null}.
         */
        ModelBuildingRequest setModelCache(ModelCache modelCache);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Futures.java

        }
        return (ListenableFuture<? extends T>[]) collection.toArray(new ListenableFuture<?>[0]);
      }
    
      // This can't be a TrustedFuture, because TrustedFuture has clever optimizations that
      // mean cancel won't be called if this Future is passed into setFuture, and then
      // cancelled.
      private static final class InCompletionOrderFuture<T extends @Nullable Object>
          extends AbstractFuture<T> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  6. .bazelrc

    build:linux --experimental_guard_against_concurrent_changes
    
    # Configure short or long logs
    build:short_logs --output_filter=DONT_MATCH_ANYTHING
    build:verbose_logs --output_filter=
    
    # Instruction set optimizations
    # TODO(gunan): Create a feature in toolchains for avx/avx2 to
    #   avoid having to define linux/win separately.
    build:avx_linux --copt=-mavx
    build:avx_linux --host_copt=-mavx
    build:avx_win --copt=/arch:AVX
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 28 22:02:31 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/Futures.java

        }
        return (ListenableFuture<? extends T>[]) collection.toArray(new ListenableFuture<?>[0]);
      }
    
      // This can't be a TrustedFuture, because TrustedFuture has clever optimizations that
      // mean cancel won't be called if this Future is passed into setFuture, and then
      // cancelled.
      private static final class InCompletionOrderFuture<T extends @Nullable Object>
          extends AbstractFuture<T> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.4K bytes
    - Viewed (0)
  8. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java

            checkVersionsOrder(b, c); // now b < c, but before MNG-5568, we had b > c
            checkVersionsOrder(a, c);
        }
    
        /**
         * Test <a href="https://jira.apache.org/jira/browse/MNG-6572">MNG-6572</a> optimization.
         */
        @Test
        void testMng6572() {
            String a = "20190126.230843"; // resembles a SNAPSHOT
            String b = "1234567890.12345"; // 10 digit number
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataTreeNode.java

     *
     *
     */
    @Deprecated
    public class MetadataTreeNode {
        ArtifactMetadata md; // this node
    
        MetadataTreeNode parent; // papa
    
        /** default # of children. Used for tree creation optimization only */
        int nChildren = 8;
    
        MetadataTreeNode[] children; // of cause
    
        public int getNChildren() {
            return nChildren;
        }
    
        public void setNChildren(int children) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

        @RetainedLocalRef ListenableFuture<? extends V> delegate = delegateRef;
        maybePropagateCancellationTo(delegate);
    
        @RetainedLocalRef Future<?> localTimer = timer;
        // Try to cancel the timer as an optimization.
        // timer may be null if this call to run was by the timer task since there is no happens-before
        // edge between the assignment to timer and an execution of the timer task.
        if (localTimer != null) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top