caching

package
v1.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FallbackFieldMap

type FallbackFieldMap struct {
	// contains filtered or unexported fields
}

use hashnap

func NewFallbackFieldMap

func NewFallbackFieldMap(n int) *FallbackFieldMap

func (*FallbackFieldMap) Get

func (self *FallbackFieldMap) Get(name string) int

func (*FallbackFieldMap) Set

func (self *FallbackFieldMap) Set(fields []resolver.FieldMeta)

type FieldLookup

type FieldLookup interface {
	Set(fields []resolver.FieldMeta)
	Get(name string) int
}

func NewFieldLookup

func NewFieldLookup(fields []resolver.FieldMeta) FieldLookup

type NormalFieldMap

type NormalFieldMap struct {
	// contains filtered or unexported fields
}

Map for keys nums max 255, idx is in [0, 255), idx 255 means not found. keysoffset | metadata | aligned key0 | aligned key1 | ... | 1 ~ 8 8 ~ 16 16 ~ 32 > 32 keys use the long keys entry lists use bytes to reduce GC

func NewNormalFieldMap

func NewNormalFieldMap(n int) *NormalFieldMap

func (*NormalFieldMap) Get

func (self *NormalFieldMap) Get(name string) int

use native SIMD to accelerate it

func (*NormalFieldMap) Getdouble

func (self *NormalFieldMap) Getdouble(name string) int

func (*NormalFieldMap) Set

func (self *NormalFieldMap) Set(fields []resolver.FieldMeta)

type SmallFieldMap

type SmallFieldMap struct {
	// contains filtered or unexported fields
}

Map for keys nums max 8, idx is in [0, 8)

func NewSmallFieldMap

func NewSmallFieldMap(hint int) *SmallFieldMap

func (*SmallFieldMap) Get

func (self *SmallFieldMap) Get(name string) int

func (*SmallFieldMap) Set

func (self *SmallFieldMap) Set(fields []resolver.FieldMeta)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL