java - 为什么说编译时注解比反射效率高?
巴扎黑
巴扎黑 2017-04-18 10:41:12
0
1
546
巴扎黑
巴扎黑

reply all(1)
刘奇

Annotations can not only be obtained through reflection, but also bytecode can be generated at compile time through annotations, which is more efficient than reflection.
The usual way to optimize reflection is to generate bytecode dynamically, such as cglib,静态生成比如Javassist.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template