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)
| 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. |
| 49 | func 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 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…