Description
The optimization of DefaultTimestampFormatter has been implemented in #36562 , this ticket adds the optimization of legacy format. The basic logic is to prevent the formatter from throwing exceptions, and then use catch to determine whether the parsing is successful.