Skip to content

perf(linter): replace string operations with cow_utils::CowUtils #5586

@Boshen

Description

@Boshen

I noticed we have many allocation methods which can be replaced by

https://docs.rs/cow-utils/0.1.3/cow_utils/trait.CowUtils.html

Feel free to grep them in the oxc_linter crate and make improvements. You may find inefficient routines in the process, feel free to make separate PRs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linterArea - LinterC-enhancementCategory - New feature or requestgood first issueExperience Level - Good for newcomers

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions