Performance cost of Java dynamic proxy

前端 未结 3 1645
一个人的身影
一个人的身影 2021-01-30 06:52

Many modern frameworks (Spring, Hibernate) provide very nice dynamic behaviors with use of Java dynamic proxies, but what\'s the exact performance cost associated with it? Are t

3条回答
  •  情深已故
    2021-01-30 07:44

    I don't know if there is any performance analysis in the framework you mentioned, but in my project lambdaj I made a very large use of dynamic proxy using the same technology (cglib). In the pdf that explains how my library works you can also find an interesting performance comparison on this subject.

提交回复
热议问题