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): Properly box variants #9158

Closed
wants to merge 121 commits into from
Closed

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Jul 6, 2024

Description:

  • Add Stmt::Directive.

@kdy1 kdy1 added this to the Planned milestone Jul 6, 2024
@kdy1 kdy1 self-assigned this Jul 6, 2024
@kdy1 kdy1 mentioned this pull request Jul 6, 2024
@kdy1
Copy link
Member Author

kdy1 commented Jul 6, 2024

This didn't have noticeable positive effect on the performance of the parser

@kdy1 kdy1 changed the base branch from main to perf July 7, 2024 13:19
@kdy1 kdy1 force-pushed the ast-perf branch 3 times, most recently from bd77967 to 435dfb7 Compare July 10, 2024 03:48
kdy1 added 3 commits July 10, 2024 21:48
**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.
@kdy1 kdy1 force-pushed the ast-perf branch 2 times, most recently from 1600b50 to 8c045fb Compare July 10, 2024 14:09
@kdy1
Copy link
Member Author

kdy1 commented Jul 12, 2024

I'll try a different approach

@kdy1 kdy1 closed this Jul 12, 2024
@kdy1 kdy1 deleted the ast-perf branch July 12, 2024 03:48
@kdy1 kdy1 modified the milestones: Planned, v1.7.0 Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant