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

优化性能 #28

Closed kurten closed 5 years ago

kurten commented 5 years ago
codecov-io commented 5 years ago

Codecov Report

Merging #28 into master will decrease coverage by 0.85%. The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #28      +/-   ##
==========================================
- Coverage   87.52%   86.67%   -0.86%     
==========================================
  Files          34       34              
  Lines        1275     1268       -7     
  Branches       54       54              
==========================================
- Hits         1116     1099      -17     
- Misses        149      159      +10     
  Partials       10       10
Impacted Files Coverage Δ
src/factory/applicationContext.ts 81.81% <100%> (-0.19%) :arrow_down:
src/factory/container.ts 90.66% <100%> (ø) :arrow_up:
src/factory/common/managedResolverFactory.ts 77.71% <83.33%> (-5.97%) :arrow_down:

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 5722ab3...726e123. Read the comment docs.

codecov-io commented 5 years ago

Codecov Report

Merging #28 into master will decrease coverage by 0.85%. The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #28      +/-   ##
==========================================
- Coverage   87.52%   86.67%   -0.86%     
==========================================
  Files          34       34              
  Lines        1275     1268       -7     
  Branches       54       54              
==========================================
- Hits         1116     1099      -17     
- Misses        149      159      +10     
  Partials       10       10
Impacted Files Coverage Δ
src/factory/applicationContext.ts 81.81% <100%> (-0.19%) :arrow_down:
src/factory/container.ts 90.66% <100%> (ø) :arrow_up:
src/factory/common/managedResolverFactory.ts 77.71% <83.33%> (-5.97%) :arrow_down:

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 5722ab3...726e123. Read the comment docs.

waitingsong commented 5 years ago

一般来说查询性能上 Map 应该不差吧? 个人觉得应该和object差不多,比array高。