Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,094 for allocations (0.4 sec)

  1. src/internal/fuzz/mutator.go

    package fuzz
    
    import (
    	"encoding/binary"
    	"fmt"
    	"math"
    	"unsafe"
    )
    
    type mutator struct {
    	r       mutatorRand
    	scratch []byte // scratch slice to avoid additional allocations
    }
    
    func newMutator() *mutator {
    	return &mutator{r: newPcgRand()}
    }
    
    func (m *mutator) rand(n int) int {
    	return m.r.intn(n)
    }
    
    func (m *mutator) randByteOrder() binary.ByteOrder {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 20:01:34 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/base/timings.go

    	events map[int][]*event // lazily allocated
    }
    
    type timestamp struct {
    	time  time.Time
    	label string
    	start bool
    }
    
    type event struct {
    	size int64  // count or amount of data processed (allocations, data size, lines, funcs, ...)
    	unit string // unit of size measure (count, MB, lines, funcs, ...)
    }
    
    func (t *Timings) append(labels []string, start bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. src/net/http/fcgi/fcgi.go

    	h.PaddingLength = uint8(-contentLength & 7)
    }
    
    // conn sends records over rwc
    type conn struct {
    	mutex    sync.Mutex
    	rwc      io.ReadWriteCloser
    	closeErr error
    	closed   bool
    
    	// to avoid allocations
    	buf bytes.Buffer
    	h   header
    }
    
    func newConn(rwc io.ReadWriteCloser) *conn {
    	return &conn{rwc: rwc}
    }
    
    // Close closes the conn if it is not already closed.
    func (c *conn) Close() error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 18:51:39 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/util/cdi/cdi.go

    	return annotations, nil
    }
    
    // annotationKey returns a unique annotation key for an device allocation
    // by a K8s device plugin. pluginName should be in the format of
    // "vendor.device-type". deviceID is the ID of the device the plugin is
    // allocating. It is used to make sure that the generated key is unique
    // even if multiple allocations by a single plugin needs to be annotated.
    func annotationKey(pluginName, deviceID string) (string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 09:48:24 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  5. src/crypto/internal/nistec/p256_asm.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 *P256Point) Bytes() []byte {
    	// This function is outlined to make the allocations inline in the caller
    	// rather than happen on the heap.
    	var out [p256UncompressedLength]byte
    	return p.bytes(&out)
    }
    
    func (p *P256Point) bytes(out *[p256UncompressedLength]byte) []byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  6. src/go/types/selection.go

    		// The type of x.f is a function (without receiver)
    		// and an additional first argument with the same type as x.
    		// TODO(gri) Similar code is already in call.go - factor!
    		// TODO(gri) Compute this eagerly to avoid allocations.
    		sig := *s.obj.(*Func).typ.(*Signature)
    		arg0 := *sig.recv
    		sig.recv = nil
    		arg0.typ = s.recv
    		var params []*Var
    		if sig.params != nil {
    			params = sig.params.vars
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/selection.go

    		// The type of x.f is a function (without receiver)
    		// and an additional first argument with the same type as x.
    		// TODO(gri) Similar code is already in call.go - factor!
    		// TODO(gri) Compute this eagerly to avoid allocations.
    		sig := *s.obj.(*Func).typ.(*Signature)
    		arg0 := *sig.recv
    		sig.recv = nil
    		arg0.typ = s.recv
    		var params []*Var
    		if sig.params != nil {
    			params = sig.params.vars
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc.go

    	// value of `fairProp` solves the problem.
    	// If the current value of fairProp were the answer then
    	// `sumSoFar == requiredSum`.
    	// Otherwise the next increment in fairProp involves changing the allocations
    	// of `numSensitiveClasses` classes whose targets sum to `sensitiveTargetSum`;
    	// for the other classes, an upper or lower bound has applied and will continue to apply.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

         *
         * https://github.com/google/guava/issues/2254
         *
         * Other kinds of Errors are possible:
         *
         * - OutOfMemoryError from allocations in setFuture(): The calculus here is similar to
         * StackOverflowError: We can't reliably call setException(error).
         *
         * - Any kind of Error from a listener. Even if we could distinguish that case (by exposing some
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. src/runtime/mcache.go

    // since c was populated. This must happen between the sweep phase
    // starting and the first allocation from c.
    func (c *mcache) prepareForSweep() {
    	// Alternatively, instead of making sure we do this on every P
    	// between starting the world and allocating on that P, we
    	// could leave allocate-black on, allow allocation to continue
    	// as usual, use a ragged barrier at the beginning of sweep to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top