3 ms·
Not every solution to a problem needs to use as little memory as possible. But that's not the point. People aren't suggesting micro managing memory. Java has a
by papaf 5y ago
Not every solution to a problem needs to use as little memory as possible.
But that's not the point. People aren't suggesting micro managing memory. Java has a well deserved reputation of being a memory hog and its using 20x what is needed in this benchmark.
- kaba0 5y agoIn optimizations, you focus on a few metrics, like throughput, latency, resource usage, but deciding to improve one can (and usually does) impact the others. Java (that is, OpenJDK) usually trades of RAM for throughput. And compared to high-level languages doing comparable work, it doesn't use much memory. Of course a low-level language like Rust can be more lean, but that's beside the point. And in this case presumably, Rust could be made to have a better throughput by using more memory.