Skip to content

Commit

Permalink
Use more cores when availabe
Browse files Browse the repository at this point in the history
  • Loading branch information
dmssargent committed Jul 6, 2024
1 parent 689bbce commit caca430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/davidsar/gent/stubjars/StubJars.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class StubJars {
private static final File BUILD_DIR = new File(SOURCE_DIR, "build");
private static final File CLASSES_DIR = new File(BUILD_DIR, "classes");
private static final File SOURCES_LIST_FILE = new File(SOURCE_DIR, "sources.list");
private final int numberOfCompilerThreads = 4;
private final int numberOfCompilerThreads = Math.min(Runtime.getRuntime().availableProcessors() - 1, 1);


private StubJars(@NotNull List<JarClass<?>> clazzes, List<JarFile> classpathJars) {
Expand Down

0 comments on commit caca430

Please sign in to comment.