Skip to content

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented Oct 27, 2025

Our capability and config system fetching is hugely wasteful, allocating a bunch which becomes problematic in code paths like completions and code actions where we transform a bunch of entries. So this jus papers over one instance of this, but we should really fix this properly

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 27, 2025
@Veykril Veykril enabled auto-merge October 27, 2025 22:49
@Veykril Veykril added this pull request to the merge queue Oct 27, 2025
Merged via the queue into rust-lang:master with commit 7c810e9 Oct 27, 2025
15 checks passed
@Veykril Veykril deleted the veykril/push-pznvunxxozkq branch October 27, 2025 23:09
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 27, 2025
@ChayimFriedman2
Copy link
Contributor

Are you sure it's a bottleneck? It's done once per request, and the requests are usually bottlenecked by inference etc., not by this.

@Veykril
Copy link
Member Author

Veykril commented Oct 29, 2025

Well, the issue here was that for completions and code actions it was done once per completion item and code action item which is very much noticeable on profiling. So this is more about highlighting that there are perf traps with the structure of this code

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.

3 participants