Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Boshen opened this issue Sep 7, 2024 · 1 comment
Closed

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

Boshen opened this issue Sep 7, 2024 · 1 comment
Labels
A-linter Area - Linter C-enhancement Category - New feature or request good first issue Experience Level - Good for newcomers

Comments

@Boshen
Copy link
Member

Boshen commented Sep 7, 2024

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.

@Boshen Boshen added C-enhancement Category - New feature or request good first issue Experience Level - Good for newcomers A-linter Area - Linter labels Sep 7, 2024
Boshen pushed a commit that referenced this issue Sep 9, 2024
part of #5586 

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Boshen pushed a commit that referenced this issue Sep 9, 2024
Boshen pushed a commit that referenced this issue Sep 9, 2024
Boshen added a commit that referenced this issue Sep 10, 2024
close: #5639 

part of: #5586

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Boshen <boshenc@gmail.com>
@Boshen
Copy link
Member Author

Boshen commented Sep 10, 2024

The remaining cases in #5662 should be fixed. Feel free to use the PR as the base and make changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linter Area - Linter C-enhancement Category - New feature or request good first issue Experience Level - Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant