FILE / ScuroNeko/mtg

mtglib/internal/relay/pool_settings_mips.go

Исходный файл и его история в репозитории.
FILE 0ad3a06863bf2a29bec9ffdf0f3845e9c78a17c7
Files
mtg/mtglib/internal/relay/pool_settings_mips.go
T

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
)