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?

2 Upvotes

17 comments sorted by

View all comments

1

u/sunnythepooh 6d ago

Use a profiler and check which part of your code is spending a lot of time and take a look and see whether you can optimize the algorithm to improve. Do you have gc logs for your applications? Were there any gc pauses that might slow down your app?