sofastack / sofa-rpc

SOFARPC is a high-performance, high-extensibility, production-level Java RPC framework.
https://www.sofastack.tech/sofa-rpc/docs/Home
Apache License 2.0
3.82k stars 1.17k forks source link

fix getDeserializerForCustomThrowable performance #1288

Closed rickey17 closed 1 year ago

rickey17 commented 1 year ago

Motivation: Class.forName存在性能问题 https://github.com/spring-projects/spring-framework/issues/18631

Modification: 增加缓存

codecov[bot] commented 1 year ago

Codecov Report

Merging #1288 (8d35559) into master (1e386ed) will decrease coverage by 0.03%. The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #1288      +/-   ##
============================================
- Coverage     72.01%   71.98%   -0.04%     
  Complexity      783      783              
============================================
  Files           414      414              
  Lines         17565    17567       +2     
  Branches       2740     2740              
============================================
- Hits          12650    12645       -5     
- Misses         3521     3529       +8     
+ Partials       1394     1393       -1     
Impacted Files Coverage Δ
...nericMultipleClassLoaderSofaSerializerFactory.java 100.00% <100.00%> (ø)
...GenericSingleClassLoaderSofaSerializerFactory.java 89.65% <100.00%> (+0.36%) :arrow_up:
...java/com/alipay/sofa/rpc/module/LookoutModule.java 52.38% <0.00%> (-33.34%) :arrow_down:
...n/java/com/alipay/sofa/rpc/common/SofaConfigs.java 84.90% <0.00%> (-1.89%) :arrow_down:
...com/alipay/sofa/rpc/context/RpcRuntimeContext.java 88.88% <0.00%> (-1.24%) :arrow_down:
...va/com/alipay/sofa/rpc/client/AbstractCluster.java 71.54% <0.00%> (+0.26%) :arrow_up:
...lipay/sofa/rpc/message/AbstractResponseFuture.java 57.01% <0.00%> (+0.87%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.