| ▲ | andriy_koval 3 hours ago | ||||||||||||||||
Java has significant overhead, that most/every object is allocated on heap, synchronized and has extra overhead of memory and performance to be GC controlled. Its very hard/not possible to tune this part. | |||||||||||||||||
| ▲ | matt_heimer 3 hours ago | parent [-] | ||||||||||||||||
You program differently for this niche in any language. The hot path (number crunching) thread doesn't share objects with gateway (IO) threads. Passing data between them is off heap, you avoid object creation after warm up. There is no synchronization, even volatile is something you avoid. | |||||||||||||||||
| |||||||||||||||||