FILE / ScuroNeko/mtg

mtglib/internal/relay/pool_settings_constrained.go

Исходный файл и его история в репозитории.
FILE db2e6031a3aeec840ef2c2b51ae2e3288355f416
Files
mtg/mtglib/internal/relay/pool_settings_constrained.go
T
2026-03-29 22:54:08 +02:00

14 lines
404 B
Go

//go:build mips || mipsle
package relay
import "github.com/9seconds/mtg/v2/mtglib/internal/tls"
const (
// MIPS is quite short in resources, and usually it means that it will run
// on Microtiks, OpenWRT-based routers or similar hardware. I think it worth
// to sacrifice a number of read syscalls (read, CPU load) to shrink
// limited RAM resources.
bufPoolSize = tls.MaxRecordPayloadSize / 2
)