hessian.js icon indicating copy to clipboard operation
hessian.js copied to clipboard

[BREAKING] refactor: enhance require profermance

Open gxcsoccer opened this issue 6 years ago • 2 comments

console.time('hessian.js-1');
require('hessian.js-1');
console.timeEnd('hessian.js-1');

优化前

hessian.js-1: 71.638ms

优化后

hessian.js-1: 10.878ms

gxcsoccer avatar Apr 08 '19 17:04 gxcsoccer

wait https://github.com/node-modules/byte/pull/36

gxcsoccer avatar Apr 08 '19 17:04 gxcsoccer

Codecov Report

Merging #118 into 1.x will increase coverage by 0.18%. The diff coverage is 97.53%.

Impacted file tree graph

@@            Coverage Diff             @@
##              1.x     #118      +/-   ##
==========================================
+ Coverage   94.57%   94.76%   +0.18%     
==========================================
  Files           9       11       +2     
  Lines        1107     1089      -18     
  Branches      195        0     -195     
==========================================
- Hits         1047     1032      -15     
+ Misses         60       57       -3
Impacted Files Coverage Δ
lib/utils.js 100% <100%> (ø) :arrow_up:
lib/v1/encoder.js 99.05% <100%> (-0.04%) :arrow_down:
lib/object.js 95.23% <100%> (-0.66%) :arrow_down:
lib/v1/decoder.js 98.57% <100%> (+0.43%) :arrow_up:
lib/is_type_of.js 100% <100%> (ø)
index.js 100% <100%> (ø) :arrow_up:
lib/debug.js 75% <75%> (ø)
lib/v2/decoder.js 88.54% <91.3%> (+0.09%) :arrow_up:
lib/v2/encoder.js 93.21% <98.76%> (+0.32%) :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 1a4fc9a...262394c. Read the comment docs.

codecov[bot] avatar Apr 08 '19 17:04 codecov[bot]