Make proto parse/read parallel for RTA.
In my workstation, this takes down read/parse part -which is now the slowest piece- from ~800ms to ~200ms for large apps.
Reduction in total runtime is around 45%.
@@ -57,7 +57,7 @@ public class BazelJ2clRta extends BazelWorker {
@Override
protected Problems run() {
List<LibraryInfo> libraryInfos =
- inputs.stream().map(BazelJ2clRta::readLibraryInfo).collect(toImmutableList());
+ inputs.parallelStream().map(BazelJ2clRta::readLibraryInfo).collect(toImmutableList());
RtaResult rtaResult = RapidTypeAnalyser.analyse(libraryInfos);
