提交 531040d4 编写于 作者: 沉默王二's avatar 沉默王二 💬

by 花椒-π.-7年

上级 270b6f05
......@@ -192,7 +192,7 @@ public class TryCatchTest1 {
![](https://cdn.tobebetterjavaer.com/studymore/try-catch-xingneng-20230326210303.png)
+-差不多,直接看前面的分数对比,没有 `ry-catch` 的性能确实好些,这也和书中说的 `try-catch` 会影响 JVM 一些特定的优化说法吻合,但是具体没有说影响哪些优化,我猜测可能是指令重排之类的。
+-差不多,直接看前面的分数对比,没有 `try-catch` 的性能确实好些,这也和书中说的 `try-catch` 会影响 JVM 一些特定的优化说法吻合,但是具体没有说影响哪些优化,我猜测可能是指令重排之类的。
好了,我再总结下有关 `try-catch` 性能问题说法:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册