第十三天

2016-05-25  本文已影响24人  观察者_王动

鸡汤 2016年5月25日

其实鸡汤都是别人吃完肉剩下的,但是对于濒临饿死的人来说,一口鸡汤或许就是救命的灵药,就是人生的转折。 喝完鸡汤,赶紧去找点吃的。

今日

Drawbacks of Reflection

Reflection is powerful, but should not be used indiscriminately. If it is possible to perform an operation without using reflection, then it is preferable to avoid using it. The following concerns should be kept in mind when accessing code via reflection.

Performance Overhead
  • 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.
Security Restrictions
Exposure of Internals
明日
上一篇下一篇

猜你喜欢

热点阅读