restore thread counts

This commit is contained in:
Martin Rotter 2023-01-18 13:16:16 +01:00
parent 9fd125dd77
commit 256cdc2c09

View File

@ -218,7 +218,7 @@ Application::Application(const QString& id, int& argc, char** argv, const QStrin
auto ideal_th_count = QThread::idealThreadCount(); auto ideal_th_count = QThread::idealThreadCount();
if (ideal_th_count > 1) { if (ideal_th_count > 1) {
QThreadPool::globalInstance()->setMaxThreadCount((std::min)(128, 4)); QThreadPool::globalInstance()->setMaxThreadCount((std::min)(32, 2 * ideal_th_count));
} }
QThreadPool::globalInstance()->setExpiryTimeout(120000); QThreadPool::globalInstance()->setExpiryTimeout(120000);