2 ms·
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
by dehrmann 4y ago
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.
- sudosysgen 4y agoYou can also use your own allocator in C++ to reduce system calls.