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

Try caching macro calls more aggressively in Semantics #17004

Merged
merged 4 commits into from
Jun 4, 2024

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Apr 3, 2024

No description provided.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 3, 2024
@Veykril Veykril changed the title Try caching macro calls more aggressively Try caching macro calls more aggressively in Semantics Apr 3, 2024
@bors
Copy link
Collaborator

bors commented Apr 17, 2024

☔ The latest upstream changes (presumably #17092) made this pull request unmergeable. Please resolve the merge conflicts.

@Veykril Veykril added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 25, 2024
@Veykril Veykril force-pushed the ide-macro-caching branch 2 times, most recently from ae62c8c to f55e74e Compare June 4, 2024 12:12
@Veykril Veykril marked this pull request as ready for review June 4, 2024 13:21
@Veykril Veykril force-pushed the ide-macro-caching branch 3 times, most recently from 1b5d608 to a3b3127 Compare June 4, 2024 13:29
@Veykril
Copy link
Member Author

Veykril commented Jun 4, 2024

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 4, 2024

📌 Commit 9349045 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jun 4, 2024

⌛ Testing commit 9349045 with merge 29e5cdf...

@bors
Copy link
Collaborator

bors commented Jun 4, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 29e5cdf to master...

@bors bors merged commit 29e5cdf into rust-lang:master Jun 4, 2024
11 checks passed
@Veykril Veykril deleted the ide-macro-caching branch June 4, 2024 14:43
@Wilfred
Copy link
Contributor

Wilfred commented Jun 17, 2024

@Veykril dumb question: why is this cached outside of salsa? Do you have a good rule of thumb for deciding which state should be in salsa versus in the struct directly like this example?

@Veykril
Copy link
Member Author

Veykril commented Jun 18, 2024

Most of the state here depends on syntax trees, those have no business being inside salsa because they are heavy memory wise and very unstable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants