Default to processor count concurrent scan instead of 2 * processor count (#11569)

This commit is contained in:
Cody Robibero 2024-05-12 15:18:56 -06:00 committed by GitHub
parent 6689d837d6
commit f77a5d0c5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -594,7 +594,7 @@ namespace MediaBrowser.Controller.Entities
}
var fanoutConcurrency = ConfigurationManager.Configuration.LibraryScanFanoutConcurrency;
var parallelism = fanoutConcurrency > 0 ? fanoutConcurrency : 2 * Environment.ProcessorCount;
var parallelism = fanoutConcurrency > 0 ? fanoutConcurrency : Environment.ProcessorCount;
var actionBlock = new ActionBlock<int>(
async i =>