首页 > 教育学习 > 为什么 > Java 反射到底慢在哪里?

Java 反射到底慢在哪里?
2012-01-19 20:20:37   来源:   点击:

    Java 反射到底慢在哪里?能系统讲解下么?万分感谢

    4 个答案

    • 答案 1:

      谁告诉你慢了?
    • 答案 2:

      忽略不计
    • 答案 3:

      应该动态加载的,没办法运用jvm的一些优化措施,比如jit之类的。
    • 答案 4:

      Because reflection involves types that are dynamically resolved, certain Java virtual machine optimizations can not be performed. Consequently, reflective operations have slower performance than their non-reflective counterparts, and should be avoided in sections of code which are called frequently in performance-sensitive applications. stackoverflow.com/question...

相关热词搜索:

上一篇:北京最地道最好吃的炸酱面在哪里啊?
下一篇:苹果申请了augmented reality maps专利,大家有何感想?