Default concurrent download count to #CPUS-1.

This commit is contained in:
Michael Bayne
2018-11-30 11:41:59 -08:00
parent cb5ee3efe6
commit c8226b83ee
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -8,6 +8,9 @@
* When a custom JVM is installed, old JVM files will be deleted prior to unpacking the new JVM. Via
PR#170.
* Number of concurrent downloads now defaults to num-cores minus one. Though downloads are I/O
bound rather than CPU bound, this still turns out to be a decent default.
## 1.8.2 - Nov 27, 2018
* Fixed a data corruption bug introduced at last minute into 1.8.1 release. Oops.
@@ -717,7 +717,8 @@ public class Application
_codeCacheRetentionDays = config.getInt("code_cache_retention_days", 7);
// maximum simultaneous downloads
_maxConcDownloads = Math.max(1, config.getInt("max_concurrent_downloads", 2));
_maxConcDownloads = Math.max(1, config.getInt("max_concurrent_downloads",
SysProps.threadPoolSize()));
// parse and return our application config
UpdateInterface ui = new UpdateInterface(config);