Description
All classes that extend ValueEvaluation init booleanValue, stringValue, and numberValue fields in constructors. But most of the time the numberValue isn't needed and it's not necessarily trivial to parse as the underlying code also tries to parse it as a date, and catches errors if it fails.
Modify the Evaluation classes to only attempt to parse the number when toNumber is called, and cache the result so subsequent accesses are free.
Related Issues
Description
All classes that extend ValueEvaluation init
booleanValue,stringValue, andnumberValuefields in constructors. But most of the time the numberValue isn't needed and it's not necessarily trivial to parse as the underlying code also tries to parse it as a date, and catches errors if it fails.Modify the Evaluation classes to only attempt to parse the number when
toNumberis called, and cache the result so subsequent accesses are free.Related Issues