A CLI tool (which most POSIX tools are) would pick throughput over latency any time.
A CLI tool (which most POSIX tools are) would pick throughput over latency any time.
Basically java gc is a solution to a problem that shouldn't exist.
If I had a dollar for every time somebody repeated this without real-world benchmarks to back it up...
But you're never going to encounter a C++ program that does that, since it makes no sense.
I once worked on a python program that was transpiled to C++, and literally every variable was heap allocated (because that's what python does). It was still on the order of 200x faster than python IIRC.
In the best cases, you’re losing a huge amount of performance vs. an equivalent non-GC system. In the worst, it affects interactive UI performance with multi-second stalls (a suitably modern GC shouldn’t do this, though).