Whether the IDEA optimizes the application at startup?
Hello! Need to do a quick performance test.
For example, you want to find out the time of interacia the array for a large number of objects. While stupidly running the app from IDEA.
Do I understand correctly that if I create an empty loop, the compiler will cut it, and the test will not be relevant.
Kasey.Cruickshank answered on June 10th 19 at 14:54
The IDEA is a development environment that is built the compiler, which is usually separate from Oracle for example. Itself the development environment, nothing is optimized, but the optimization makes the primary virtual machine, a compiler which can optimize, including empty cycles, but if you run your bytecode. Not sure how now, but earlier it was possible to specify the virtual machine or not to conduct the optimization.
rosario.Marv answered on June 10th 19 at 14:56
In IDEA there is such a thing optimize imports, which optimizes and removes unused imported packages. But again it's early launch. And this function is in Ultimate