Should I use javac -O option to optimize?

后端 未结 3 1092
一向
一向 2021-01-01 11:47

javac has an interesting -O option:

Optimizes compiled code by inlining static, final and private methods. Note that your

3条回答
  •  醉梦人生
    2021-01-01 11:58

    It is a no-op according to a comment in the source code around line 553.

    It was probably useful when the JIT compiler was not efficient yet or when there was no JIT compiler at all.

提交回复
热议问题