Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,094 for allocations (0.18 sec)

  1. cluster/addons/calico-policy-controller/calico-clusterrole.yaml

      - apiGroups: ["crd.projectcalico.org"]
        resources:
          - bgpconfigurations
          - bgppeers
        verbs:
          - create
          - update
      # These permissions are required for Calico CNI to perform IPAM allocations.
      - apiGroups: ["crd.projectcalico.org"]
        resources:
          - blockaffinities
          - ipamblocks
          - ipamhandles
        verbs:
          - get
          - list
          - create
          - update
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 26 02:52:06 UTC 2020
    - 3.3K bytes
    - Viewed (0)
  2. test/finprofiled.go

    // run
    
    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that tiny allocations with finalizers are correctly profiled.
    // Previously profile special records could have been processed prematurely
    // (while the object is still live).
    
    package main
    
    import (
    	"runtime"
    	"time"
    	"unsafe"
    )
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 05:48:00 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cpumanager/policy_static.go

    //
    //   - ASSIGNABLE: Equal to SHARED - RESERVED. Exclusive CPUs are allocated
    //     from this pool.
    //
    //   - EXCLUSIVE ALLOCATIONS: CPU sets assigned exclusively to one container.
    //     These are stored as explicit assignments in the state.
    //
    // When an exclusive allocation is made, the static policy also updates the
    // default cpuset in the state abstraction. The CPU manager's periodic
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 28.8K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/external/model/ImmutableCapabilities.java

     *
     * This type will ensure that all contents are immutable upon construction,
     * in order to allow instances of this type to be safely reused whenever possible
     * to avoid unnecessary memory allocations.
     *
     * Note that while this class is not itself {@code final}, all fields are private, so
     * subclassing should not break the immutability contract.
     */
    public class ImmutableCapabilities {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 04:22:29 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. pkg/model/authentication.go

    	SDSDefaultResourceName = "default"
    
    	// SDSRootResourceName is the sdsconfig name for root CA, used for fetching root cert.
    	SDSRootResourceName = "ROOTCA"
    )
    
    // Preconfigured SDS configs to avoid excessive memory allocations
    var (
    	defaultSDSConfig = &tls.SdsSecretConfig{
    		Name: SDSDefaultResourceName,
    		SdsConfig: &core.ConfigSource{
    			ConfigSourceSpecifier: &core.ConfigSource_ApiConfigSource{
    				ApiConfigSource: &core.ApiConfigSource{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. src/crypto/tls/cache_test.go

    		b.Fatal("Failed to decode certificate")
    	}
    
    	cc := certCache{}
    	b.ReportAllocs()
    	b.ResetTimer()
    	// We expect that calling newCert additional times after
    	// the initial call should not cause additional allocations.
    	for extra := 0; extra < 4; extra++ {
    		b.Run(fmt.Sprint(extra), func(b *testing.B) {
    			actives := make([]*activeCert, extra+1)
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				var err error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 07 19:46:27 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  7. pkg/registry/rbac/validation/policy_compact.go

    func isSimpleResourceRule(rule *rbacv1.PolicyRule) (simpleResource, bool) {
    	resource := simpleResource{}
    
    	// If we have "complex" rule attributes, return early without allocations or expensive comparisons
    	if len(rule.ResourceNames) > 1 || len(rule.NonResourceURLs) > 0 {
    		return resource, false
    	}
    	// If we have multiple api groups or resources, return early
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 22 12:17:05 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  8. pkg/registry/resource/resourceslice/strategy.go

    // TODO: fields are not labels, and the validation rules for them do not apply.
    func toSelectableFields(slice *resource.ResourceSlice) fields.Set {
    	// The purpose of allocation with a given number of elements is to reduce
    	// amount of allocations needed to create the fields.Set. If you add any
    	// field here or the number of object-meta related fields changes, this should
    	// be adjusted.
    	fields := make(fields.Set, 3)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/runtime/types_proto.go

    	MarshalTo(data []byte) (int, error)
    }
    
    type ProtobufReverseMarshaller interface {
    	MarshalToSizedBuffer(data []byte) (int, error)
    }
    
    // NestedMarshalTo allows a caller to avoid extra allocations during serialization of an Unknown
    // that will contain an object that implements ProtobufMarshaller or ProtobufReverseMarshaller.
    func (m *Unknown) NestedMarshalTo(data []byte, b ProtobufMarshaller, size uint64) (int, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 25 18:54:00 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/aes/cache.go

    	}
    	c.cache.Set(keyFunc(dataCtx), transformer, c.ttl)
    }
    
    func keyFunc(dataCtx value.Context) string {
    	return toString(dataCtx.AuthenticatedData())
    }
    
    // toString performs unholy acts to avoid allocations
    func toString(b []byte) string {
    	// unsafe.SliceData relies on cap whereas we want to rely on len
    	if len(b) == 0 {
    		return ""
    	}
    	// Copied from go 1.20.1 strings.Builder.String
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 19:25:52 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top