Java's gotten a lot better with latency with new GCs. Some codebases use statically-allocated memory in Java and do it very carefully. Sometimes shops will just shut off the GC. Graal also gives you AOT options now.
One thing I read is that memory allocation can be faster in Java because malloc can result in system calls. Deallocation is what's slower.
One thing I read is that memory allocation can be faster in Java because malloc can result in system calls. Deallocation is what's slower.