News for hackers. Stuff that matters.
Re:Java is better than C++ for high speed trading systems by antpls on Thursday November 26, 2020 @02:48AM (#25217845)
Did you ever detailed on the Internet about those methods to attain no GC pause? It would be interesting to learn from your experience
Re:Java is better than C++ for high speed trading systems by jjav on Thursday November 26, 2020 @03:01AM (#25217911)
It's not rocket science honestly. Mostly any Java performance guide will tell you how.

Allocate either locally on the stack or allocate for the life of the process so it never gets GC'd.

Of course, spend time profiling to make sure you got it. Figure out your redeployment cadence and that sets the ceiling for how much data can be an exception to these rules.

(e.g. if you redeploy nightly then it's fine to grow the memory consumption as long as you don't hit full GC in less than 24hrs.)

In a nutshell that's it.