PoolingOptions¶
PoolingOptions configures the object pools used by the network runtime.
Source mapping¶
src/Nalix.Network/Configurations/PoolingOptions.cs
What it controls¶
- accept context capacity and preallocation
- socket async event args capacity and preallocation
- receive context capacity and preallocation
- timeout-task pool sizing
- packet-context pool sizing
Why it matters¶
These settings affect:
- startup warmup
- allocation pressure under load
- pool hit rate during bursts
Basic usage¶
Tuning rule¶
Capacityshould roughly match expected peak concurrent usagePreallocateshould roughly match steady-state warm usage