Skip to content

StdDateFormat: performance improvement of '_format(..)' method #1749

@brenuart

Description

@brenuart

The _format(..) method creates a new GregorianCalendar instance for every invocation. Performance would be better if the calendar is reused across invocations just like what is done with the DateFormats.

Without this optimisation, the performance are roughly the same as the SimpleDateFormat. With the optimisation, the StdDateFormat becomes 300% faster...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions