Increase "PublicationsRetriever.threadsMultiplier" to 10, which in turn, increases performance by 41%.

This commit is contained in:
Lampros Smyrnaios 2022-02-23 17:31:32 +02:00
parent 377b98d677
commit 760e0ef7e2
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ public class PublicationsRetrieverPlugin {
ConnSupportUtils.shouldBlockMost5XXDomains = false;
LoaderAndChecker.setCouldRetryRegex();
PublicationsRetriever.threadsMultiplier = 4;
PublicationsRetriever.threadsMultiplier = 10;
int workerThreadsCount = (Runtime.getRuntime().availableProcessors() * PublicationsRetriever.threadsMultiplier);
logger.info("Use " + workerThreadsCount + " worker-threads.");
PublicationsRetriever.executor = Executors.newFixedThreadPool(workerThreadsCount);