logoalt Hacker News

andriy_kovalyesterday at 6:35 PM1 replyview on HN

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.


Replies

matt_heimeryesterday at 6:49 PM

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.

show 1 reply