MCPcopy Create free account
hub / github.com/cockroachdb/swiss / WithMaxBucketCapacity

Function WithMaxBucketCapacity

options.go:49–51  ·  view source on GitHub ↗

WithMaxBucketCapacity is an option to specify the max bucket size to use for a Map[K,V]. Specifying a very large bucket size results in slower resize operations but delivers performance more akin to a raw Swiss table.

(v uint32)

Source from the content-addressed store, hash-verified

47// for a Map[K,V]. Specifying a very large bucket size results in slower
48// resize operations but delivers performance more akin to a raw Swiss table.
49func WithMaxBucketCapacity[K comparable, V any](v uint32) Option[K, V] {
50 return maxBucketCapacityOption[K, V]{v}
51}
52
53// Allocator specifies an interface for allocating and releasing memory used
54// by a Map. The default allocator utilizes Go's builtin make() and allows the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…