Documentation
¶
Overview ¶
stringpool provides a pool of string pointers, ensuring that each string is stored only once in memory. This is useful for queries that have many results, as the amount of source packages is limited. So, as soon as len(results) > len(sourcepackages), you save memory using a stringpool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringPool ¶
func NewStringPool ¶
func NewStringPool() *StringPool
func (*StringPool) Get ¶
func (pool *StringPool) Get(s string) *string
Click to show internal directories.
Click to hide internal directories.