Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BREAKING] refactor: enhance require profermance #118

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from

Conversation

gxcsoccer
Copy link
Member

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
Copy link
Member Author

wait node-modules/byte#36

@gxcsoccer gxcsoccer changed the title refactor: enhance require profermance [BREAKING] refactor: enhance require profermance Apr 8, 2019
@codecov
Copy link

codecov bot commented Apr 8, 2019

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%> (ø) ⬆️
lib/v1/encoder.js 99.05% <100%> (-0.04%) ⬇️
lib/object.js 95.23% <100%> (-0.66%) ⬇️
lib/v1/decoder.js 98.57% <100%> (+0.43%) ⬆️
lib/is_type_of.js 100% <100%> (ø)
index.js 100% <100%> (ø) ⬆️
lib/debug.js 75% <75%> (ø)
lib/v2/decoder.js 88.54% <91.3%> (+0.09%) ⬆️
lib/v2/encoder.js 93.21% <98.76%> (+0.32%) ⬆️
... 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant