ant-design / cssinjs

https://ant-design.github.io/cssinjs
MIT License
235 stars 57 forks source link

chore: opt the array creation #173

Closed zombieJ closed 5 months ago

zombieJ commented 5 months ago

数组转换有损耗,前置一下缓存逻辑。

github-actions[bot] commented 5 months ago

🎊 PR Preview 36d33efe1101ed54273802a8b6082ee572348eb6 has been successfully built and deployed to https://ant-design-cssinjs-preview-pr-173.surge.sh

:clock1: Build time: 68.013s

🤖 By surge-preview

codecov-commenter commented 5 months ago

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (c16002a) 95.04% compared to head (201d1f6) 94.80%.

:exclamation: Current head 201d1f6 differs from pull request most recent head 36d33ef. Consider uploading reports for the commit 36d33ef to get more accurate results

Files Patch % Lines
src/Cache.ts 81.81% 4 Missing :warning:
src/hooks/useGlobalCache.tsx 90.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #173 +/- ## ========================================== - Coverage 95.04% 94.80% -0.24% ========================================== Files 29 29 Lines 2602 2619 +17 Branches 393 394 +1 ========================================== + Hits 2473 2483 +10 - Misses 129 136 +7 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

afc163 commented 5 months ago

优化效果是?