Hacker News new | ask | show | jobs
by andai 25 days ago
Hello world in Rust is huge, and every actual program I've looked at installed dozens of packages for basic functionality.

Turns out all those zero cost abstractions add up to a lot!

1 comments

The number of packages doesn't have anything to do with this
It does with the compile times lol

Is there actually a way to see a breakdown of memory usage for a program? If you want to see where all the memory is going?

The topic was ram usage during runtime.
What causes that?
> Is there actually a way to see a breakdown of memory usage for a program? If you want to see where all the memory is going?

Flame graphs are a pretty common tool for this (maybe slightly less common than using them for seeing the breakdown of the time spent when running).