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

refactor: replace lodash/isEqual with react-fast-compare #6526

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

guoyunhe
Copy link
Contributor

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

    lodash/isEqual: Bundle size is 16.4 kB -> 6.4 kB (gzip)
react-fast-compare: Bundle size is 2.34 kB -> 925 B (gzip)

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

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

图片

数据来源 https://www.npmjs.com/package/react-fast-compare

相比 lodash/isEqual, react-fast-compare 在体积和性能上都更有优势。

Copy link

codecov bot commented Jan 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b431a18) 92.27% compared to head (08d4af8) 92.27%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6526   +/-   ##
=======================================
  Coverage   92.27%   92.27%           
=======================================
  Files         316      316           
  Lines        6897     6897           
  Branches     1728     1728           
=======================================
  Hits         6364     6364           
  Misses        497      497           
  Partials       36       36           

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

@zombieJ zombieJ merged commit 7a14295 into ant-design:master Jan 15, 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