Documentation ¶
Overview ¶
Package intset provides a specialized set for integers or runes
Package intset provides a specialized set for integers or runes ¶
Package intset provides a specialized set for integers or runes ¶
Package intset provides a specialized set for integers or runes ¶
Package intset provides a specialized set for integers or runes
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Default = NewConfig()
Default is a default Config which favors probing performance at the cost of memory.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config defines the configuration for creating a new set
Smaller values for bucketSize will speed up lookups but also increase memory usage. Smaller values for bucketGrowBy will slow down the set capacity growth rate but also slow down insertions.
func (*Config) BucketGrowBy ¶
BucketGrowBy sets the amount a bucket will grow by when full
func (*Config) BucketSize ¶
BucketSize sets the initial bucket size
type Rune ¶
type Rune struct {
// contains filtered or unexported fields
}
Rune stores rune set data
func IntersectRune ¶
IntersectRune returns the intersection of an array of sets
func NewRune ¶
NewRune creates an empty rune set with target capacity specified by size using default configuration
func NewRuneConfig ¶
NewRuneConfig creates an empty rune set with target capacity specified by size
type Sized ¶
type Sized struct {
// contains filtered or unexported fields
}
Sized stores int set data
func NewSized ¶
NewSized creates an empty int set with target capacity specified by size using default configuration
func NewSizedConfig ¶
NewSizedConfig creates an empty int set with target capacity specified by size
type Sized32 ¶
type Sized32 struct {
// contains filtered or unexported fields
}
Sized32 stores uint32 set data
func Intersect32 ¶
Intersect32 returns the intersection of an array of sets
func NewSized32 ¶
NewSized32 creates an empty int set with target capacity specified by size using default configuration
func NewSized32Config ¶
NewSized32Config creates an empty uint32 set with target capacity specified by size