Skip to content

Commit d98fd1a

Browse files
committed
Refactored cores calculation to use three-quarters of available processors
1 parent d2299f3 commit d98fd1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/it/unipr/utils/EVMLiSAExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class EVMLiSAExecutor {
99
private static final Logger log = LogManager.getLogger(EVMLiSAExecutor.class);
1010

1111
private static int CORES = (Runtime.getRuntime().availableProcessors() > 1)
12-
? Runtime.getRuntime().availableProcessors() - 1
12+
? Runtime.getRuntime().availableProcessors() / 4 * 3
1313
: 1;
1414
private static final ConcurrentMap<Class<?>, ExecutorService> ownerExecutors = new ConcurrentHashMap<>();
1515

0 commit comments

Comments
 (0)