sui icon indicating copy to clipboard operation
sui copied to clipboard

Optimize move-analyzer: it's clunky and memory hungry

Open robert-zaremba opened this issue 1 month ago • 8 comments

move-analyzer often consumes at least 6GB of memory for small codebase, and it grows quickly for larger codebase. At this point is not usable. It's clunky.

If I open 2 Move projects (identified by Move.toml) - which is often in our case, as we import packages, then the memory consumption doubles and the whole experience is even worse.

Recently everyone in our team opted out from using move-analyzer because it was counter productive.

Editors that we use: Emacs, VS Code (with the move ide extension).

robert-zaremba avatar Nov 13 '25 11:11 robert-zaremba

Thank you for opening this issue, a team member will review it shortly. Until then, please do not interact with any users that claim to be from Sui support and do not click on any links!

github-actions[bot] avatar Nov 13 '25 11:11 github-actions[bot]

Related to: https://github.com/MystenLabs/sui/issues/23226

robert-zaremba avatar Nov 13 '25 11:11 robert-zaremba

@awelc

zihehuang avatar Nov 13 '25 17:11 zihehuang

@robert-zaremba, have done some work on it somewhat recently so memory consumption should be better than, say, 3 months ago. That being said, I am aware of the problem not being completely solved and I am working on a solution as we speak. Stay tuned!

awelc avatar Nov 13 '25 17:11 awelc

In particular, the newest version (VSCode extension v1.0.33 and move-analyzer v1.60.0) should at least prevent doubling memory consumption

awelc avatar Nov 13 '25 17:11 awelc

Thanks for working on it. TBH, it's still clunky.

robert-zaremba avatar Nov 13 '25 17:11 robert-zaremba

Thanks for working on it. TBH, it's still clunky.

If there are additional missing features or things that do not work, please report using the new GitHub issue template we put together recently

awelc avatar Nov 13 '25 17:11 awelc

Please checkout the new version (VSCode extension v1.0.34 and move-analyzer v1.62.0). There should be noticeable improvement already but more optimizations are coming

awelc avatar Nov 19 '25 01:11 awelc