perf(codegen): wrap generated context in a fn - #14457
Conversation
Package Changes Through a1bf4f5There are 1 changes which include tauri-codegen with patch Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
|
How did you come up with the idea to wrap it in a function? |
It was quite a journey 😂 So basically I was wondering why the completion's so slow in that function a long time ago, and I found out if I remove this macro, the problem goes away, then I tried to poke around all sorts of different methods but nothing worked so I left it until now The only things I noticed that worked before were
I was trying to put up a documentation on how to improve this by letting rust analyzer ignore this macro with |
Wrap the generated context code in a function to make rust analyzer faster, this is probably a hack but it works 😂
Before:
before.mp4
After:
after.mp4