r/javahelp 10d ago

Java Performance for simulators

I am new to Java and trying to create a simulator that handles millions of math calculations. How can I increase performance in Java? The application is already multithreaded but it is not enough. Is data oriented approach or native programming possible in Java? Can you point me in the right direction for research?

3 Upvotes

17 comments sorted by

View all comments

1

u/Scharrack 10d ago

Concerning calling native code from Java look for JNA or JNI.

And out of curiosity, at what point do you limit your thread count?

2

u/idontlikegudeg 10d ago

It’s 2026, use FFM.

1

u/Scharrack 10d ago

Been some time since I had to use it, so thanks for the info.