What's Changed
Create a thread pool of System.coreCount rather than 64 when initializing an Application by @dfed in #3092
Following this recommendation, this PR simply changes the default number of cores when initializing an
Application
from 64 to the current number of cores.This means that initializing an
Application
with default arguments now spins up 2x the number of threads as cores on device. We’ll createSystem.coreCount
threads when instantiating thethreadPool
, and anotherSystem.coreCount
threads when we instantiate theeventLoopGroup
.2x
System.coreCount
is still way better thanSystem.coreCount + 64
on older devices, so while this PR does not directly address #3003, it does reduce total thread usage oninit
.
New Contributor
This patch was released by @gwynne
Full Changelog: 4.86.0...4.86.1