Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StrStore ¶
type StrStore struct {
// contains filtered or unexported fields
}
StrStore is used to store string with less GC overhead. The string stored here should not be longer than `pageSize` and does not need to be deleted.
func NewFromSlice ¶
NewFromSlice constructs a StrStore with the input string slice and returns the StrStore and indexes for the following reads. It panics if any string in the slice is longer than math.MaxUint32.
Click to show internal directories.
Click to hide internal directories.