3 ms·
Here is a very practical example. We chose Rust for the current project because our Python program took more than 1TB of RAM. Rust program carefully manually l
by cft 7y ago
Here is a very practical example.
We chose Rust for the current project because our Python program took more than 1TB of RAM. Rust program carefully manually laying out memory takes 75G. Other choices in this case are C/C++, but after you get a hang of Rust, it's actually easier because you don't spend days inspecting core dumps in gdb: once it compiles it actually works.
- machiaweliczny 7y agoWhat kind of program requires that much ram?
- speedplane 7y ago> What kind of program requires that much ram? Elasticsearch is written in Java, and routinely uses 30GB+ of RAM. I suspect if it was written in Python, it would use an order of magnitude more.
- lossolo 7y agoI think you are confusing VM with RSS memory metrics. Elasticsearch is not using routinely 30GB+ of RAM, I am using it on machines that have a lot less RAM. You can additionally set how much RAM you want to give to JVM.
- cft 7y agoIt would depend on the data set you want cached in memory I would think? And you set that in a configuration file I suppose. You can probably set it to use 128MB or RAM too.
- cft 7y agoAn in-memory database essentially