github vapor/vapor 4.86.1
4.86.1 - Create a thread pool of System.coreCount rather than 64 when initializing an Application

latest releases: 4.106.0, 4.105.2, 4.105.1...
11 months ago

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 create System.coreCount threads when instantiating the threadPool, and another System.coreCount threads when we instantiate the eventLoopGroup.

2x System.coreCount is still way better than System.coreCount + 64 on older devices, so while this PR does not directly address #3003, it does reduce total thread usage on init.

New Contributor

  • @dfed made their first contribution in #3092 🎉
This patch was released by @gwynne

Full Changelog: 4.86.0...4.86.1

Don't miss a new vapor release

NewReleases is sending notifications on new releases.