Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data comparable
type Tree ¶
type Tree[T Data] struct { // contains filtered or unexported fields }
Tree is a prefix tree for storing and retrieving data associated with adblock-style patterns.
Insert and Compact must not run concurrently with Get.
func (*Tree[T]) Compact ¶
func (t *Tree[T]) Compact()
Compact shrinks internal slice capacities to reduce memory usage.
Click to show internal directories.
Click to hide internal directories.