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

fix: add cache for getAstTitle in typescript parser #109

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

ArnaudBarre
Copy link
Contributor

Description

I left this comment on a previous PR and I since wonder what was the perf impact. It was less bad than expected: 4ms per keystroke on my Mac for a 1.4k lines file (Vite's optimizer/index.ts). But I don't think people will use it with that much code. Anyway once checkout it was cheap to make the PR, I let you decide if you want to merge it or not.

Copy link

stackblitz bot commented Dec 23, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

vercel bot commented Dec 23, 2024

@ArnaudBarre is attempting to deploy a commit to the sxzz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@sxzz sxzz merged commit 316c38f into sxzz:main Dec 23, 2024
3 of 4 checks passed
@ArnaudBarre ArnaudBarre deleted the ts-getSyntaxKind-cache branch December 24, 2024 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants