sofastack / sofa-registry

SOFARegistry is a production-level, low-latency, high-availability service registry powered by Ant Financial.
https://www.sofastack.tech/sofa-registry/docs/Home
Apache License 2.0
653 stars 247 forks source link

perf: use wordcache to optimize informer fgc #240

Closed dzdx closed 2 years ago

dzdx commented 2 years ago

Motivation:

Explain the context, and why you're making that change. To make others understand what is the problem you're trying to solve.

Modification:

Describe the idea and modifications you've done.

Result:

Fixes #.

https://github.com/sofastack/sofa-registry/issues/225

codecov[bot] commented 2 years ago

Codecov Report

Merging #240 (a6a2d8b) into master (a3b818d) will increase coverage by 0.12%. The diff coverage is 94.44%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #240      +/-   ##
============================================
+ Coverage     76.51%   76.64%   +0.12%     
  Complexity       48       48              
============================================
  Files           439      439              
  Lines         15472    15471       -1     
  Branches       1504     1505       +1     
============================================
+ Hits          11838    11857      +19     
+ Misses         2971     2954      -17     
+ Partials        663      660       -3     
Impacted Files Coverage Δ
...istry/store/api/elector/AbstractLeaderElector.java 85.50% <0.00%> (ø)
...a/registry/jdbc/elector/MetaJdbcLeaderElector.java 85.71% <100.00%> (ø)
...try/jdbc/repository/impl/AppRevisionContainer.java 100.00% <100.00%> (+10.00%) :arrow_up:
...c/repository/impl/InterfaceAppsIndexContainer.java 100.00% <100.00%> (+3.44%) :arrow_up:
...ofa/registry/server/session/store/DataIndexer.java 82.25% <0.00%> (-3.23%) :arrow_down:
...ta/lease/impl/DefaultCrossDcMetaServerManager.java 86.15% <0.00%> (+1.53%) :arrow_up:
...eta/lease/session/DefaultSessionServerManager.java 92.00% <0.00%> (+2.00%) :arrow_up:
...dbc/repository/impl/AppRevisionJdbcRepository.java 70.37% <0.00%> (+2.77%) :arrow_up:
...c/repository/impl/RecoverConfigJdbcRepository.java 79.66% <0.00%> (+3.38%) :arrow_up:
...egistry/common/model/appmeta/InterfaceMapping.java 73.33% <0.00%> (+6.66%) :arrow_up:
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6e740c5...a6a2d8b. Read the comment docs.