Skip to content

perf(es/parser): move found_module_item to Parser #10388

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

Merged
merged 2 commits into from
Apr 17, 2025

Conversation

CPunisher
Copy link
Member

I'm not sure whether this is correct. I just think found_module_item is a property of the whole Program rather than one function scope. This may reduce the cost of creating State(72 bytes -> 64 bytes) in parse_fn_body.

@CPunisher CPunisher requested a review from a team as a code owner April 17, 2025 13:41
Copy link

changeset-bot bot commented Apr 17, 2025

⚠️ No Changeset found

Latest commit: 2320a78

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@kdy1 kdy1 requested a review from a team as a code owner April 17, 2025 18:57
Copy link
Member

@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.

It seems like it's slightly faster!
image

@kdy1 kdy1 merged commit fd52c5c into swc-project:main Apr 17, 2025
22 checks passed
@kdy1 kdy1 modified the milestones: Planned, v1.11.22 Apr 17, 2025
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.

2 participants