Skip to content

Intl.DateTimeFormat instances not cached slowing page load times #340

@deejay-hub

Description

@deejay-hub

Time Warp version
1.15

Describe the bug
DateTimeFormat constructors are being called repeatedly — once per record in getTimelineRecords, on every processTimeline call, inside the axis tick formatter (called per tick per redraw), and inside brushed (called continuously during drag). Each instantiation involves locale resolution which is non-trivial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions