-
-
Notifications
You must be signed in to change notification settings - Fork 443
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(rust): use cow_utils
instead
#5664
Conversation
Your org has enabled the Graphite merge queue for merging into mainAdd the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
085e77d
to
cc8efaa
Compare
CodSpeed Performance ReportMerging #5664 will not alter performanceComparing Summary
|
621cc46
to
53e04c5
Compare
cow_utils
in oxc_codegen
and oxc_parser
cow_utils
instead
47f844d
to
2bd135e
Compare
Thank you! Nice work! |
## [0.9.4] - 2024-09-12 ### Features - 9ca2593 linter: Eslint/sort-keys (#4845) (Na'aman Hirschfeld) - 023c160 linter: Impl `Serialize` for `OxlintConfig` (#5594) (DonIsaac) - 24d6a47 linter: Implement `eslint/no-invalid-regexp` (#5443) (Boshen) ### Bug Fixes - af6d240 linter: Panic in consistent-function-scoping (#5613) (DonIsaac) - 54e2e76 linter: `react/no_set_state` + `react/no_string_refs` rules find correct parent (#5615) (overlookmotel) - 3b87ac4 linter: Fix no_unused_vars panic when encountering unicode (#5582) (Boshen) ### Performance - bfe9186 linter: Use `cow_replace` instead of `replace` (#5643) (dalaoshu) - e3ae5db linter: Use cow_to_ascii_lowercase/uppercase (#5637) (heygsc) - a0370bf linter: Use cow_utils in no_script_url (#5633) (heygsc) - 37e922c linter: `eslint/no_shadow_restricted_names` use `run_on_symbol` (#5618) (overlookmotel) - 0b7fccf linter: `react/no_set_state` + `react/no_string_refs` rules reduce iteration over ancestors (#5616) (overlookmotel) - 2c3f3fe linter: Make `jsx_key` slightly faster (#5585) (Boshen) - cd81d12 linter: Add `should_run` to check path only once to nextjs/no_typos (#5584) (Boshen) - d18c896 rust: Use `cow_utils` instead (#5664) (dalaoshu) ### Documentation - 64f9575 linter: Add plugin usage to example with configuration (Boshen) - 8c9179d linter: Fix typos (#5591) (Brian Donovan) ### Refactor - 9e9435f linter: Add `LintFilter` (#5685) (DonIsaac) - 4f70fe5 linter: Start internal/external split of LintPluginOptions (#5660) (DonIsaac) - 5ae9b48 linter: Start internal/external split of `OxlintOptions` (#5659) (DonIsaac) - c8bc6f0 linter: Use `std::ptr::eq` (#5649) (overlookmotel) - a37c064 linter: Use `ContentHash` for `no_duplicate_case`; remove `calculate_hash` (#5648) (Boshen) - 0b3c1d7 linter: Start internal/external split of `OxlintConfig` (#5595) (DonIsaac) - 89bdf55 linter: Inline `Rule` trait default methods (#5619) (overlookmotel) - afea8d5 linter: Rename `Rule` trait method params (#5617) (overlookmotel) - 4e748b5 linter: Replace ast "compare by hash" to "compare by content" (#5602) (dalaoshu) - bac03e3 linter: Make fields of `LintServiceOptions` private (#5593) (DonIsaac) - 2661d8b linter: Jest prefer_strict_equal (#5588) (IWANABETHATGUY) - 20d0068 oxlint: Move cli-related exports to `cli` module (#5139) (DonIsaac) - 067f9b5 semantic: Introduce `IsGlobalReference` trait (#5672) (Boshen)- 26d9235 Enable clippy::ref_as_ptr (#5577) (夕舞八弦) ### Testing - 8e79f8d linter: Add class method test cases for `oxc/no-async-await` (#5550) (DonIsaac) - 3835189 linter: Add test case for no_unused_vars in 3b87ac4 (Boshen) - 5f27551 linter: Add a passing case to no_undef (#5580) (Boshen) --------- Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
## [0.29.0] - 2024-09-13 - 71116a1 index: [**BREAKING**] Remove ability to index `IndexVec` with `usize` (#5733) (overlookmotel) - c3dd2a0 ast: [**BREAKING**] Revert: reduce byte size of `TaggedTemplateExpression::quasi` by `Boxing` it (#5679) (#5715) (overlookmotel) ### Features - 953fe17 ast: Provide `NONE` type for AST builder calls (#5737) (overlookmotel) - a362f51 index: Add `IndexVec::shrink_to` (#5713) (overlookmotel) - e968e9f minifier: Constant fold nullish coalescing operator (#5761) (Boshen) - 6bc13f6 minifier: Add `MinimizeConditions` pass (#5747) (Boshen) - 805fbac oxc_cfg: Better control flow graph dot dot repr (#5731) (IWANABETHATGUY) - f3baa49 semantic: Add `SemanticBuilder::with_stats` (#5757) (overlookmotel) - 7fa0cb3 semantic: Expose `Stats` (#5755) (overlookmotel) ### Bug Fixes - 8ff013a minifier: Handle dce CallExpression::callee (#5752) (Boshen) - 608b7d3 napi/transformer: Refresh plugin doesn't work even after passing the refresh option (#5702) (Dunqing) - 042afa9 syntax: Correctly check for valid `RedeclarationId`s (#5759) (overlookmotel) - 77d9170 transformer/react: IsStaticChildren should be false when there is only one child (#5745) (Dunqing) ### Performance - 333e2e0 index: Remove `Idx` bounds-checks from `first` + `last` methods (#5726) (overlookmotel) - d18c896 rust: Use `cow_utils` instead (#5664) (dalaoshu) ### Refactor - 2890c98 minifier: Add tests for `remove_syntax` (#5749) (Boshen) - 9a9d8f6 minifier: Replace `self.ast` with `ctx.ast` (#5748) (Boshen) - 746f7b3 minifier: Align code with closure compiler (#5717) (Boshen) - 21e2df5 minifier: Replace `VisitMut` with `Traverse` for inject and define plugins (#5705) (Boshen) - 4bdc202 rust: Remove some #[allow(unused)] (#5716) (Boshen) - a35fb14 semantic: `Stats::assert_accurate` take `self` (#5758) (overlookmotel) - 4b896f1 semantic: Make `Stats` `Copy` (#5756) (overlookmotel) - b4b460f semantic: `Stats` store counts as `u32` (#5754) (overlookmotel) - 667170c semantic: Rename `Counts` to `Stats` (#5753) (overlookmotel) - cc0408b semantic: S/AstNodeId/NodeId (#5740) (Boshen) - 7dfcdfc semantic: Remove `more-asserts` dependency (#5739) (overlookmotel) - 6436524 semantic: Fix dead code warning in release mode (#5728) (overlookmotel) - e02621d semantic: Re-order use statements (#5712) (overlookmotel) - ac6203c semantic: Move `Counts` code into counter module (#5710) (overlookmotel) - 339fcfc semantic: Rename `Counts` in transform checker (#5709) (overlookmotel) - d8ec781 semantic: Remove `record_ast_node` call for `Program` (#5701) (overlookmotel) ### Styling - 1857ff0 semantic: Rename vars for node IDs (#5699) (overlookmotel) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
Related to #5586 and #5662