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

替换 lodash/memoize 为 nano-memoize #6524

Merged
merged 4 commits into from
Feb 6, 2024

Conversation

guoyunhe
Copy link
Contributor

@guoyunhe guoyunhe commented Jan 13, 2024

打包体积比较(越小越好)

lodash/memoize: Bundle size is 6.58 kB -> 2.67 kB (gzip) 
  nano-memoize: Bundle size is 1.12 kB -> 505 B (gzip)

数据来源 https://bundlejs.com/

性能比较(ops/sec越多越好)

lodash/memoize:  54,617,110 ops/sec
  nano-memoize: 177,773,071 ops/sec

数据来源 https://github.com/anywhichway/nano-memoize#benchmarks

相比 lodash/memoize, nano-memoize 在体积和性能上都更有优势。

Copy link
Contributor

github-actions bot commented Feb 1, 2024

PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6524.surge.sh

Copy link

codecov bot commented Feb 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b431a18) 92.27% compared to head (110addb) 92.29%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6524      +/-   ##
==========================================
+ Coverage   92.27%   92.29%   +0.01%     
==========================================
  Files         316      317       +1     
  Lines        6897     6901       +4     
  Branches     1728     1728              
==========================================
+ Hits         6364     6369       +5     
+ Misses        497      496       -1     
  Partials       36       36              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zombieJ zombieJ merged commit ca09a21 into ant-design:master Feb 6, 2024
8 checks passed
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.

2 participants