You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "yhs0092 (via GitHub)" <gi...@apache.org> on 2023/11/23 07:08:15 UTC
[I] Invoker每次调用都会从Spring应用上下文getBean, 可以优化提升性能 [servicecomb-java-chassis]
yhs0092 opened a new issue, #4053:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4053
## 涉及分支
2.8.x
## 问题描述
当前`InvokerUtils`类的`decorateSyncRetry`和`decorateReactiveRetry`方法中获取`RetryHandler`时, 每次都是直接调用`BeanUtils.getBean(RetryHandler.class)`方法, 因此每次调用都会从Spring 应用上下文中重新查找 bean.
建议将`BeanUtils.getBean(RetryHandler.class)`的结果缓存起来, 减少不必要的查找操作.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Invoker每次调用都会从Spring应用上下文getBean, 可以优化提升性能 [servicecomb-java-chassis]
Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 closed issue #4053: Invoker每次调用都会从Spring应用上下文getBean, 可以优化提升性能
URL: https://github.com/apache/servicecomb-java-chassis/issues/4053
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org