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: alternate impl of getLocation #262

Merged
merged 1 commit into from
Oct 18, 2024
Merged

perf: alternate impl of getLocation #262

merged 1 commit into from
Oct 18, 2024

Conversation

boopathi
Copy link
Member

Improvement to getLocation to avoid the (1) regex of entire source, and (2) going over the entire source to figure out an information that already exists in node AST.

This improves the compilation time - compile time reduced by 60% - tested against a large query of 1100 lines, 30+ fragments, and 40+ variables.

@boopathi boopathi added the minor label Oct 18, 2024
@boopathi
Copy link
Member Author

👍

@boopathi boopathi merged commit 3d52c77 into main Oct 18, 2024
13 checks passed
@boopathi boopathi deleted the perf-4 branch October 18, 2024 09:33
@boopathi boopathi mentioned this pull request Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants