Hacker News new | ask | show | jobs
by anip 4791 days ago
Admittedly I don't have that much experience in Java but have worked on C++ systems with sub 10us latency (and it did fairly complex things). Any memory allocation can take an order of magnitude more time than that.

Apart from writing your own memory arena, you would need to put local objects on the heap in Java. It is possible to write high performance Java, but like a previous comment mentioned, that code looks more and more like C++, so why not just write C++?