xruntime

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CacheLineSize is useful for preventing false sharing.
	CacheLineSize = 64

	MaxDuration = time.Duration(math.MaxInt64)
)

Variables

This section is empty.

Functions

func Fastrand

func Fastrand() uint32

func Parallelism

func Parallelism() uint32

Parallelism returns the maximum possible number of concurrently running goroutines.

Types

type Hasher

type Hasher[T comparable] struct {
	// contains filtered or unexported fields
}

func NewHasher

func NewHasher[T comparable]() Hasher[T]

func (Hasher[T]) Hash

func (h Hasher[T]) Hash(t T) uint64

Jump to

Keyboard shortcuts

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