midwayjs / injection

Injection is a powerful inversion of control container that is widely used in the midway framework and brings good user experience.
MIT License
160 stars 20 forks source link

refactor: optimal performance #26

Closed czy88840616 closed 5 years ago

czy88840616 commented 5 years ago

优化 injection 性能

codecov-io commented 5 years ago

Codecov Report

Merging #26 into master will increase coverage by <.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
+ Coverage   87.53%   87.54%   +<.01%     
==========================================
  Files          34       34              
  Lines        1252     1253       +1     
  Branches       52       52              
==========================================
+ Hits         1096     1097       +1     
  Misses        146      146              
  Partials       10       10
Impacted Files Coverage Δ
src/factory/applicationContext.ts 82% <100%> (+0.18%) :arrow_up:
src/factory/container.ts 90.66% <100%> (-0.13%) :arrow_down:
src/factory/xml/xmlApplicationContext.ts 100% <100%> (ø) :arrow_up:

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 83ecc20...8aebffb. Read the comment docs.