Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 1,094 for allocations (0.2 sec)

  1. android/guava/src/com/google/common/primitives/Shorts.java

       * toIndex} exclusive. This is equivalent to {@code
       * Collections.rotate(Shorts.asList(array).subList(fromIndex, toIndex), distance)}, but is
       * considerably faster and avoids allocations and garbage collection.
       *
       * <p>The provided "distance" may be negative, which will rotate left.
       *
       * @throws IndexOutOfBoundsException if {@code fromIndex < 0}, {@code toIndex > array.length}, or
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/primitives/Shorts.java

       * toIndex} exclusive. This is equivalent to {@code
       * Collections.rotate(Shorts.asList(array).subList(fromIndex, toIndex), distance)}, but is
       * considerably faster and avoids allocations and garbage collection.
       *
       * <p>The provided "distance" may be negative, which will rotate left.
       *
       * @throws IndexOutOfBoundsException if {@code fromIndex < 0}, {@code toIndex > array.length}, or
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cpumanager/cpu_assignment.go

    	numCPUGroupsNeeded := (a.numCPUsNeeded-1)/cpuGroupSize + 1
    
    	// Calculate the minimum number of numa nodes required to satisfy the
    	// allocation (rounding up).
    	minNumNUMAs = (numCPUGroupsNeeded-1)/numCPUGroupsPerNUMANode + 1
    
    	// Calculate the maximum number of numa nodes required to satisfy the allocation.
    	maxNumNUMAs = min(numCPUGroupsNeeded, numNUMANodesAvailable)
    
    	return
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 25 23:56:21 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/order.go

    // mapKeyReplaceStrConv replaces OBYTES2STR by OBYTES2STRTMP
    // in n to avoid string allocations for keys in map lookups.
    // Returns a bool that signals if a modification was made.
    //
    // For:
    //
    //	x = m[string(k)]
    //	x = m[T1{... Tn{..., string(k), ...}}]
    //
    // where k is []byte, T1 to Tn is a nesting of struct and array literals,
    // the allocation of backing bytes for the string can be avoided
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  5. internal/grid/connection.go

    	} else {
    		handler = c.handlers.subSingle[*subID]
    	}
    	if handler == nil {
    		gridLogIf(ctx, c.queueMsg(m, muxConnectError{Error: "Invalid Handler for type"}))
    		return
    	}
    
    	// TODO: This causes allocations, but escape analysis doesn't really show the cause.
    	// If another faithful engineer wants to take a stab, feel free.
    	go func(m message) {
    		var start time.Time
    		if m.DeadlineMS > 0 {
    			start = time.Now()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/net/dns/dnsmessage/message.go

    // DNS message packing and unpacking.
    //
    // The package also supports messages with Extension Mechanisms for DNS
    // (EDNS(0)) as defined in RFC 6891.
    //
    // This implementation is designed to minimize heap allocations and avoid
    // unnecessary packing and unpacking as much as possible.
    package dnsmessage
    
    import (
    	"errors"
    )
    
    // Message formats
    
    // A Type is a type of DNS request and response.
    type Type uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 69K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Floats.java

       * toIndex} exclusive. This is equivalent to {@code
       * Collections.rotate(Floats.asList(array).subList(fromIndex, toIndex), distance)}, but is
       * considerably faster and avoids allocations and garbage collection.
       *
       * <p>The provided "distance" may be negative, which will rotate left.
       *
       * @throws IndexOutOfBoundsException if {@code fromIndex < 0}, {@code toIndex > array.length}, or
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/Floats.java

       * toIndex} exclusive. This is equivalent to {@code
       * Collections.rotate(Floats.asList(array).subList(fromIndex, toIndex), distance)}, but is
       * considerably faster and avoids allocations and garbage collection.
       *
       * <p>The provided "distance" may be negative, which will rotate left.
       *
       * @throws IndexOutOfBoundsException if {@code fromIndex < 0}, {@code toIndex > array.length}, or
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  9. src/crypto/internal/mlkem768/mlkem768.go

    //
    // It implements ML-KEM.KeyGen according to FIPS 203 (DRAFT), Algorithm 15, and
    // K-PKE.KeyGen according to FIPS 203 (DRAFT), Algorithm 12. The two are merged
    // to save copies and allocations.
    func kemKeyGen(dk *DecapsulationKey, d, z *[32]byte) *DecapsulationKey {
    	if dk == nil {
    		dk = &DecapsulationKey{}
    	}
    
    	G := sha3.Sum512(d[:])
    	ρ, σ := G[:32], G[32:]
    
    	A := &dk.A
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  10. src/testing/sub_test.go

    				alloc(b)
    				b.ReportAllocs()
    			})
    			b.Run("", func(b *B) {
    				alloc(b)
    				b.ReportAllocs()
    			})
    			// runtime.MemStats sometimes reports more allocations than the
    			// benchmark is responsible for. Luckily the point of this test is
    			// to ensure that the results are not underreported, so we can
    			// simply verify the lower bound.
    			if got := b.result.MemAllocs; got < 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 21:27:08 UTC 2023
    - 23.8K bytes
    - Viewed (0)
Back to top