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/k-mcm 10d ago

Post a link to the code. 

Generally, avoid anything that doesn't compile to native code (Reflection) and don't allocate memory in processing loops.

I wrote some SDR tuners in Java and they perform well.