| ▲ | matt_heimer 3 hours ago | |||||||
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. | ||||||||
| ▲ | andriy_koval 3 hours ago | parent [-] | |||||||
> Passing data between them is off heap how exactly you are passing data? You can pass some primitives without allocating them on heap. You can use some tiny subset of Java+standard library to write high performance code, but why would you do this instead of using Rust or C++? | ||||||||
| ||||||||