Skip to content

Commit

Permalink
Create a thread pool of System.coreCount rather than 64 when initiali…
Browse files Browse the repository at this point in the history
…zing an Application (#3092)

Co-authored-by: Gwynne Raskind <gwynne@vapor.codes>
  • Loading branch information
dfed and gwynne committed Nov 7, 2023
1 parent 8b67b09 commit 1d075c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Vapor/Core/Core.swift
Expand Up @@ -77,7 +77,7 @@ extension Application {
var commands = Commands()
commands.use(BootCommand(), as: "boot")
self.commands = .init(commands)
let threadPool = NIOThreadPool(numberOfThreads: 64)
let threadPool = NIOThreadPool(numberOfThreads: System.coreCount)
threadPool.start()
self.threadPool = .init(threadPool)
self.allocator = .init()
Expand Down

0 comments on commit 1d075c8

Please sign in to comment.