- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for indexLength (1.48 sec)
-
pilot/pkg/model/typed_xds_cache_test.go
cache := c.(*lruCache[uint64]) assert.Equal(t, cache.store.Len(), 0) assert.Equal(t, cache.indexLength(), 0) // adding the entry populates the indexes c.Add(firstEntry.Key(), firstEntry, req, res) assert.Equal(t, cache.store.Len(), 1) assert.Equal(t, cache.indexLength(), 2) assert.Equal(t, cache.configIndexSnapshot(), map[ConfigHash]sets.Set[uint64]{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jan 29 20:35:31 UTC 2024 - 18.2K bytes - Viewed (0) -
pilot/pkg/model/typed_xds_cache.go
for i, ik := range iKeys { v, ok := l.store.Get(ik) if !ok { continue } res[i] = v.value } return res } func (l *lruCache[K]) indexLength() int { l.mu.RLock() defer l.mu.RUnlock() return len(l.configIndex) } func (l *lruCache[K]) configIndexSnapshot() map[ConfigHash]sets.Set[K] { l.mu.RLock() defer l.mu.RUnlock()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 05:26:03 UTC 2024 - 11K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/encode.go
TimeTag: cbor.EncTagNone, // Indefinite-length items have multiple encodings and aren't being used anyway, so // disable to avoid an opportunity for nondeterminism. IndefLength: cbor.IndefLengthForbidden, // Preserve distinction between nil and empty for slices and maps. NilContainers: cbor.NilContainerAsNull, // OK to produce tags. TagsMd: cbor.TagsAllowed,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 15 15:31:10 UTC 2024 - 3.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode.go
// is 10000. MaxNestedLevels: 64, MaxArrayElements: 1024, MaxMapPairs: 1024, // Indefinite-length sequences aren't produced by this serializer, but other // implementations can. IndefLength: cbor.IndefLengthAllowed, // Accept inputs that contain CBOR tags. TagsMd: cbor.TagsAllowed, // Decode type 0 (unsigned integer) as int64.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 10 14:03:36 UTC 2024 - 3.9K bytes - Viewed (0)