Class ParallelAllClassVisitor

java.lang.Object
proguard.classfile.visitor.ParallelAllClassVisitor
All Implemented Interfaces:
ClassPoolVisitor

public class ParallelAllClassVisitor extends Object implements ClassPoolVisitor
This ClassPoolVisitor will visit all Clazz instances of the class pool in a parallel way. For each thread, a separate ClassVisitor will be created using ParallelAllClassVisitor.ClassVisitorFactory.createClassVisitor().

The number of parallel threads is coupled to the number of available processors:

     parallel_threads = Runtime.getRuntime().availableProcessors() - 1;
 

It is possible to override the number of threads by setting the environment variable parallel.threads to an integer > 0.