package art
import "tailscale.com/net/art"
Package art provides a routing table that implements the Allotment Routing Table (ART) algorithm by Donald Knuth, as described in the paper by Yoichi Hariguchi.
ART outperforms the traditional radix tree implementations for route lookups, insertions, and deletions.
For more information, see Yoichi Hariguchi's paper: https://cseweb.ucsd.edu//~varghese/TEACH/cs228/artlookup.pdf
Index ¶
Types ¶
type Table ¶
type Table[T any] struct { // contains filtered or unexported fields }
Table is an IPv4 and IPv6 routing table.
func (*Table[T]) Delete ¶
Delete removes pfx from the table, if it is present.
func (*Table[T]) Get ¶
Get does a route lookup for addr and returns the associated value, or nil if no route matched.
func (*Table[T]) Insert ¶
Insert adds pfx to the table, with value val. If pfx is already present in the table, its value is set to val.
Source Files ¶
stride_table.go table.go
- Version
- v1.84.0 (latest)
- Published
- May 21, 2025
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 1 day ago –
Tools for package owners.