Performance impact of using aop

前端 未结 9 2326
小蘑菇
小蘑菇 2020-12-05 02:07

We have started to use spring aop for cross cutting aspects of our application (security & caching at the moment).

My manager worries about the performance impa

9条回答
  •  醉酒成梦
    2020-12-05 02:40

    If you are using proxy-based AOP, you are talking about 1 additional Java method invocation per aspect applied. The performance impact there is pretty negligible. The only real concern is the creation of the proxies but this usually happens just once on application startup. The SpringSource blog has a great post on this:

    http://blog.springsource.com/2007/07/19/debunking-myths-proxies-impact-performance/

提交回复
热议问题