Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,094 for allocations (0.39 sec)

  1. src/bytes/buffer_test.go

    // should not result in any allocations.
    // This can be used to reset the underlying []byte of an existing Buffer.
    func TestNewBufferShallow(t *testing.T) {
    	testenv.SkipIfOptimizationOff(t)
    	n := testing.AllocsPerRun(1000, func() {
    		buf = *NewBuffer(testBytes)
    	})
    	if n > 0 {
    		t.Errorf("allocations occurred while shallow copying")
    	}
    	check(t, "NewBuffer", &buf, testString)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. src/crypto/internal/nistec/fiat/p224.go

    func (e *P224Element) Set(t *P224Element) *P224Element {
    	e.x = t.x
    	return e
    }
    
    // Bytes returns the 28-byte big-endian encoding of e.
    func (e *P224Element) Bytes() []byte {
    	// This function is outlined to make the allocations inline in the caller
    	// rather than happen on the heap.
    	var out [p224ElementLen]byte
    	return e.bytes(&out)
    }
    
    func (e *P224Element) bytes(out *[p224ElementLen]byte) []byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/topologymanager/policy.go

    // are preferred.
    func mergePermutation(defaultAffinity bitmask.BitMask, permutation []TopologyHint) TopologyHint {
    	// Get the NUMANodeAffinity from each hint in the permutation and see if any
    	// of them encode unpreferred allocations.
    	preferred := true
    	var numaAffinities []bitmask.BitMask
    	for _, hint := range permutation {
    		// Only consider hints that have an actual NUMANodeAffinity set.
    		if hint.NUMANodeAffinity != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 09:45:25 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  4. pkg/registry/core/service/ipallocator/controller/repairip.go

    	workers    = 5
    )
    
    // Repair is a controller loop that examines all service ClusterIP allocations and logs any errors,
    // and then creates the accurate list of IPAddresses objects with all allocated ClusterIPs.
    //
    // Handles:
    // * Duplicate ClusterIP assignments caused by operator action or undetected race conditions
    // * Allocations to services that were not actually created due to a crash or powerloss
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  5. src/crypto/ed25519/ed25519_test.go

    	}
    
    	if Verify(publicKey, msg, sig) {
    		t.Fatal("non-canonical signature accepted")
    	}
    }
    
    func TestAllocations(t *testing.T) {
    	if boring.Enabled {
    		t.Skip("skipping allocations test with BoringCrypto")
    	}
    	testenv.SkipIfOptimizationOff(t)
    
    	if allocs := testing.AllocsPerRun(100, func() {
    		seed := make([]byte, SeedSize)
    		message := []byte("Hello, world!")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. pkg/util/smallset/smallset.go

    	"istio.io/istio/pkg/slices"
    )
    
    // Set is an immutable set optimized for *small number of items*. For general purposes, Sets is likely better
    //
    // *Set construction*: sets is roughly 1kb allocations per 250 items. smallsets is 0.
    // *Contains* sets is O(1). smallsets is O(logn). smallsets is typically faster up to about 5 elements.
    //
    //	At 1000 items, it is roughly 5x slower (30ns vs 5ns).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

       * `allocations.size() < allocationLimit` then new streams can be created on this connection.
       */
      internal var allocationLimit = 1
        private set
    
      /** Current calls carried by this connection. */
      val calls = mutableListOf<Reference<RealCall>>()
    
      /** Timestamp when `allocations.size()` reached zero. Also assigned upon initial connection. */
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. src/crypto/internal/nistec/fiat/p384.go

    func (e *P384Element) Set(t *P384Element) *P384Element {
    	e.x = t.x
    	return e
    }
    
    // Bytes returns the 48-byte big-endian encoding of e.
    func (e *P384Element) Bytes() []byte {
    	// This function is outlined to make the allocations inline in the caller
    	// rather than happen on the heap.
    	var out [p384ElementLen]byte
    	return e.bytes(&out)
    }
    
    func (e *P384Element) bytes(out *[p384ElementLen]byte) []byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  9. src/crypto/internal/nistec/fiat/p521.go

    func (e *P521Element) Set(t *P521Element) *P521Element {
    	e.x = t.x
    	return e
    }
    
    // Bytes returns the 66-byte big-endian encoding of e.
    func (e *P521Element) Bytes() []byte {
    	// This function is outlined to make the allocations inline in the caller
    	// rather than happen on the heap.
    	var out [p521ElementLen]byte
    	return e.bytes(&out)
    }
    
    func (e *P521Element) bytes(out *[p521ElementLen]byte) []byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  10. src/crypto/internal/nistec/generate.go

    // SEC 1, Version 2.0, Section 2.3.3. Note that the encoding of the point at
    // infinity is shorter than all other encodings.
    func (p *{{.P}}Point) Bytes() []byte {
    	// This function is outlined to make the allocations inline in the caller
    	// rather than happen on the heap.
    	var out [1+2*{{.p}}ElementLength]byte
    	return p.bytes(&out)
    }
    
    func (p *{{.P}}Point) bytes(out *[1+2*{{.p}}ElementLength]byte) []byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top