Skip to content

Performance check: Current code might be 6% or so slower that can be #112

@webJose

Description

@webJose

Definitely a low priority. See this benchmark.

It compares 3 possible code snippets to prepare the final CSS classes string. On the majority of cases, the way clsx currently does it is 6% slower in Chromium browsers. I don't have other browsers installed, so I have no idea if this is consistent across the board.

Image

If people have the time and willingness, kindly run the benchmark and report.

The eventual request would be to alter the code to use the fastest code sample.

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