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(es/ast): Rollup merge of breaking changes #9180

Merged
merged 7 commits into from
Jul 12, 2024
Merged

perf(es/ast): Rollup merge of breaking changes #9180

merged 7 commits into from
Jul 12, 2024

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Jul 9, 2024

Description:

  • Span.ctxt is removed to reduce the size of Span.
  • ctxt: SyntaxContext is added to various AST nodes.
  • IdentName is used instead of Ident in some places like MemberProp, because those fields does not need ctxt or optional.

@kdy1 kdy1 added this to the Planned milestone Jul 9, 2024
@kdy1 kdy1 self-assigned this Jul 9, 2024
@kdy1 kdy1 changed the title perf(es): Rollup merge of serveral breaking changes perf(es): Rollup merge of several breaking changes Jul 9, 2024
@kdy1 kdy1 changed the title perf(es): Rollup merge of several breaking changes perf(es): Rollup merge of breaking changes Jul 9, 2024
Copy link

codspeed-hq bot commented Jul 10, 2024

CodSpeed Performance Report

Merging #9180 will degrade performances by 4.02%

Comparing perf (b7aaaf9) with perf (f64f8d6)

Summary

⚡ 1 improvements
❌ 1 regressions
✅ 172 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark perf perf Change
es/full/bugs-1 618.7 µs 573.9 µs +7.81%
es/visitor/base-perf/boxing_unboxed_clone 2.8 µs 2.9 µs -4.02%

kdy1 added 6 commits July 12, 2024 12:41
**Description:**

The identifier in the `prop` field of `MemberExpr` does not need information like `optional` or `ctxt`.
**Description:**

This PR changes the AST node construction code to use `.into()` or `::from()` to make changing the boxed-ness of the AST node easier. I used `ast-grep` to make large changes across codebase.
**Description:**

This PR will help modifying boxedness of AST nodes.
@kdy1 kdy1 marked this pull request as ready for review July 12, 2024 03:44
@kdy1 kdy1 requested review from a team as code owners July 12, 2024 03:44
kodiakhq[bot]
kodiakhq bot previously approved these changes Jul 12, 2024
@kdy1 kdy1 changed the title perf(es): Rollup merge of breaking changes perf(es/ast): Rollup merge of breaking changes Jul 12, 2024
@kdy1 kdy1 enabled auto-merge (rebase) July 12, 2024 03:45
Copy link
Member Author

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swc-bump:

  • swc_common --breaking

@kdy1 kdy1 disabled auto-merge July 12, 2024 03:46
@kdy1 kdy1 marked this pull request as draft July 12, 2024 03:46
@kdy1 kdy1 marked this pull request as ready for review July 12, 2024 03:48
@kdy1 kdy1 enabled auto-merge (rebase) July 12, 2024 03:48
@kdy1 kdy1 disabled auto-merge July 12, 2024 03:55
@kdy1 kdy1 merged commit 602e0e5 into main Jul 12, 2024
144 of 150 checks passed
@kdy1 kdy1 deleted the perf branch July 12, 2024 04:13
@kdy1 kdy1 modified the milestones: Planned, v1.7.0 Jul 17, 2024
@swc-project swc-project locked as resolved and limited conversation to collaborators Aug 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant