-
Notifications
You must be signed in to change notification settings - Fork 11.7k
[move-ide] Split symbolication implementation into smaller functions #19338
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice little bit of cleanup and refactoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice little bit of cleanup and refactoring.
&compiled_pkg_info, | ||
cursor_info, | ||
); | ||
cursor_context = compute_symbols_parsed_program( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a comment that this skips typed computation for speed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Done!
…19338) ## Description This PR contains a refactoring to split a super-long `get_symbols` function into two smaller ones. It not only makes code mode readable but also enables a more optimized implementation of the test suite. Previously, all symbols had to be recomputed when tests involved a cursor, even though it was only cursor that was changing, rather than symbols themselves. With this PR, we can recompute the cursor only, which brings the time to run all `move-analyzer` tests from minutes to (tens of) seconds. ## Test plan All existing tests must pass
Description
This PR contains a refactoring to split a super-long
get_symbols
function into two smaller ones.It not only makes code mode readable but also enables a more optimized implementation of the test suite. Previously, all symbols had to be recomputed when tests involved a cursor, even though it was only cursor that was changing, rather than symbols themselves. With this PR, we can recompute the cursor only, which brings the time to run all
move-analyzer
tests from minutes to (tens of) seconds.Test plan
All existing tests must pass