Should I use javac -O option to optimize?

后端 未结 3 1106
一向
一向 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:54

    I have been working with Java almost since its inception. I have built many systems, some of them high-performance, some of them extreme performance, and I have never, ever, found this flag useful. I think that it may have once had a use, but I have never needed to care.

提交回复
热议问题