Skip to content

Replace querySelector with getElementBy* #1310

@re-thc

Description

@re-thc

querySelector is slow. It's used in quite a lot of places in the code. getElementByClassname and getElementById is a lot faster. Note the API isn't 1:1 but close enough.

e.g. benchmark

p.s. just trying to make Apex work with larger data sets. It's a good charting solution, but maybe 5-10x slower than a lot of similar options. Happy to help optimize all parts of it in any way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions