Class AutoSetThreads

  • All Implemented Interfaces:
    ConfigurationUpdater, ProvidesFeature, ToolClasspathPlugin

    public class AutoSetThreads
    extends Object
    implements ConfigurationUpdater
    Autosets number of threads based on the number of processors reported by the runtime. The optimum number to use will vary hugely with each codebase. Simplistic formula used here is unlikely to find the best setting, but will make a coarse guess for the current machine based on the number of reported cores. This number itself might be wrong in virtual environments, so feature is best used for local development only. Disabled by default to ensure build is consistent.