Determining which parts of my Java program need optimization

I want to optimize the Java source code, but I'm not sure which parts of my code can be optimized. Is there any tool or method with which I can optimize the Java source code?

I know the basic basics of code optimization, but I have a large number of lines and very complex source code (Java classes).

Can I optimize my code using the Java profiler?

Thank Advance

+3
source share
3 answers

What do you understand when optimizing your code? You want to reorganize your code to simplify it. In this case, I suggest you use your IDE to reorganize your code.

/, , VisualVM YourKit, , .

. , IDE, , .

+2

- , . , , .

- , . . , ( ). , . , , ( ).

+3

( / / / "" ).

I would recommend using Sonar . It covers them all and is easy to configure - even on the local computer (unpack and run). It is best suited for maven projects, but also possible for NON maven projects .

0
source

Source: https://habr.com/ru/post/1791979/


All Articles