pools

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BackendBodyBufferPool = sync.Pool{
	New: func() any { return new(bytes.Buffer) },
}
View Source
var BackendBufPool = sync.Pool{
	New: func() interface{} {
		sl := make([]byte, 0, 32)
		return &sl
	},
}
View Source
var BackendHttpClientPool = &fasthttp.Client{
	MaxConnsPerHost: 512,
	ReadTimeout:     5 * time.Second,
	WriteTimeout:    5 * time.Second,
}
View Source
var (
	KeyValueSlicePool = sync.Pool{
		New: func() interface{} {
			kv := make([][2][]byte, 0, 32)
			return &kv
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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