mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 10:45:08 +03:00
e9ede74362
* Translate Simplified Chinese * Supplement the omitted * Supplement the omitted * Supplement the omitted * Supplement the omitted * Supplement the omitted * Supplement the omitted * Supplement the omitted * Supplement the omitted * Supplement the omitted * Update docs/.vitepress/shared.mts --------- Co-authored-by: Sojin Park <raon0211@gmail.com>
1.3 KiB
1.3 KiB
description |
---|
es-toolkit提供的最小包体积 |
包体积
通过其现代化的实现,es-toolkit显著减少了其包体积,与lodash等其他库相比,可以减少高达97%。
这使得es-toolkit在包体积方面成为最高效的选择,其中一些实用函数的体积甚至少于100字节。
包体积比较
es-toolkit@0.0.1 | lodash-es@4.17.21 | Difference | |
---|---|---|---|
sample | 88 bytes | 2000 bytes | -95.6% |
difference | 91 bytes | 3190 bytes | -97.2% |
sum | 152 bytes | 413 bytes | -63.2% |
debounce | 144 bytes | 1400 bytes | -89.7% |
throttle | 110 bytes | 1460 bytes | -92.5% |
pick | 657 bytes | 3860 bytes | -83.0% |
zip | 797 bytes | 1790 bytes | -55.5% |