Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 830 for reuse (0.11 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ListValueSnapshot.java

            for (int i = 0; i < pos; i++) {
                newElements.add(elements.get(i));
            }
            if (pos < list.size()) {
                // If we broke out of the comparison because there was a difference, we can reuse the snapshot of the new element
                if (newElement != null) {
                    newElements.add(newElement);
                    pos++;
                }
                // Anything left over only exists in the new list
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/allocator.go

    limitations under the License.
    */
    
    package runtime
    
    import (
    	"sync"
    )
    
    // AllocatorPool simply stores Allocator objects to avoid additional memory allocations
    // by caching created but unused items for later reuse, relieving pressure on the garbage collector.
    //
    // Usage:
    //
    //	memoryAllocator := runtime.AllocatorPool.Get().(*runtime.Allocator)
    //	defer runtime.AllocatorPool.Put(memoryAllocator)
    //
    // A note for future:
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 03:17:50 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMapEntry.java

     * buckets for the key and the value. This allows reuse in {@link RegularImmutableMap} and {@link
     * RegularImmutableBiMap}, which don't have to recopy the entries created by their {@code Builder}
     * implementations.
     *
     * <p>This base implementation has no key or value pointers, so instances of ImmutableMapEntry (but
     * not its subclasses) can be reused when copied from one ImmutableMap to another.
     *
     * @author Louis Wasserman
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/service/scopes/Scope.java

         */
        interface UserHome extends Global {}
    
        /**
         * These services are reused across build sessions.
         * <p>
         * Generally, one regular Gradle invocation is conceptually a session.
         * However, the GradleBuild task is currently implemented in such a way that it uses a discrete session.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. pkg/test/echo/server/forwarder/xds.go

    		getConn = func() (*grpc.ClientConn, func(), error) {
    			conn, err := newXDSConnection(cfg)
    			if err != nil {
    				return nil, nil, err
    			}
    			return conn, func() { _ = conn.Close() }, nil
    		}
    	} else {
    		// Reuse the connection across all requests.
    		conn, err := newXDSConnection(cfg)
    		if err != nil {
    			return nil, err
    		}
    		defer func() { _ = conn.Close() }()
    		getConn = func() (*grpc.ClientConn, func(), error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 10 18:09:08 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/crypto/chacha20poly1305/xchacha20poly1305.go

    	if len(nonce) != NonceSizeX {
    		panic("chacha20poly1305: bad nonce length passed to Seal")
    	}
    
    	// XChaCha20-Poly1305 technically supports a 64-bit counter, so there is no
    	// size limit. However, since we reuse the ChaCha20-Poly1305 implementation,
    	// the second half of the counter is not available. This is unlikely to be
    	// an issue because the cipher.AEAD API requires the entire message to be in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 09 20:10:44 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  7. platforms/software/version-control/src/main/java/org/gradle/vcs/internal/DefaultVcsMappings.java

            return this;
        }
    
        // Ensure that at most one action that may have access to the mutable state of the build runs at a given time
        // TODO - move this to a better home and reuse
        private static class DslAccessRule implements Action<VcsMapping> {
            private final Object lock;
            private final Action<? super VcsMapping> delegate;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/api/resource/scale_int.go

    		intPool.Put(divisor)
    		intPool.Put(exp)
    		intPool.Put(result)
    	}()
    
    	// divisor = 10^(dif)
    	// TODO: create loop up table if exp costs too much.
    	divisor.Exp(bigTen, exp.SetInt64(int64(dif)), nil)
    	// reuse exp
    	remainder := exp
    
    	// result = unscaled / divisor
    	// remainder = unscaled % divisor
    	result.DivMod(unscaled, divisor, remainder)
    	if remainder.Sign() != 0 {
    		return result.Int64() + 1
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 29 20:41:44 UTC 2017
    - 2.5K bytes
    - Viewed (0)
  9. internal/bpool/bpool.go

    // Get gets a []byte from the BytePool, or creates a new one if none are
    // available in the pool.
    func (bp *BytePoolCap) Get() (b []byte) {
    	if bp == nil {
    		return nil
    	}
    	select {
    	case b = <-bp.c:
    		// reuse existing buffer
    	default:
    		// create new aligned buffer
    		if bp.wcap > 0 {
    			b = reedsolomon.AllocAligned(1, bp.wcap)[0][:bp.w]
    		} else {
    			b = reedsolomon.AllocAligned(1, bp.w)[0]
    		}
    	}
    	return
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 19 16:44:59 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java

            Predicate<Artifact> predArtifactId = a -> artifactId.matches(createPathProxy(a.getArtifactId()));
            return predGroupId.and(predArtifactId);
        }
    
        /**
         * In order to reuse the glob matcher from the filesystem, we need
         * to create Path instances.  Those are only used with the toString method.
         * This hack works because the only system-dependent thing is the path
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Aug 29 15:25:58 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top