Class ConstantFunctionOptimizations

  • All Implemented Interfaces:
    OptimizerSet

    public class ConstantFunctionOptimizations
    extends BaseOptimizerSet
    This set of optimizations looks for functions that are applied to constants, and "pre executes" them, so they don't have to be calculated (returning the same value) on each run.
    Author:
    Alex Black
    • Field Detail

      • CONSTANT_FN_FOLDING_MAX_SIZE_DEFAULT

        public static final long CONSTANT_FN_FOLDING_MAX_SIZE_DEFAULT
        See Also:
        Constant Field Values
    • Constructor Detail

      • ConstantFunctionOptimizations

        public ConstantFunctionOptimizations()