-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Investigate ways to reduce memory usage #7330
Comments
A significant amount of
|
Most of my suggestions in #7330 (comment) have now been implemented in #8284 |
#8433 by @flodiebold
|
Got curious about how we compare to other similar tools. So I tried comparing rust-analyzer memory usage with running
Then I compressed each one of those with snappy: Here's the result:
So it seems like in terms of actual data we store, we are roughly on the right order of magnitude. However, the image of data in memory is really inefficient. To put the numbers into perspective, here's the amount of the source code we are working with:
|
Just for fun, here's memory image of CLion
It compresses much worse than our image. |
What's |
I guess snappy. |
Rust analyzer uses quite a bit of ram, what can we do about it?
Part of #7325
The goal here is to understand where all the bytes go.
Steps:
text.len()
vstotal_size_of(item_tree)
for each file?mods
?The text was updated successfully, but these errors were encountered: