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: opt getSize speed #222

Merged
merged 2 commits into from
Aug 18, 2023
Merged

refactor: opt getSize speed #222

merged 2 commits into from
Aug 18, 2023

Conversation

zombieJ
Copy link
Member

@zombieJ zombieJ commented Aug 18, 2023

优化 getSize 速度,重复读取时会复用先前生成的缓存。

@vercel
Copy link

vercel bot commented Aug 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
virtual-list ❌ Failed (Inspect) Aug 18, 2023 8:31am

@codecov
Copy link

codecov bot commented Aug 18, 2023

Codecov Report

Merging #222 (77806ed) into master (cb8d647) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head 77806ed differs from pull request most recent head bfccaf1. Consider uploading reports for the commit bfccaf1 to get more accurate results

@@            Coverage Diff             @@
##           master     #222      +/-   ##
==========================================
+ Coverage   99.48%   99.49%   +0.01%     
==========================================
  Files          16       17       +1     
  Lines         585      597      +12     
  Branches      121      125       +4     
==========================================
+ Hits          582      594      +12     
  Misses          3        3              
Files Changed Coverage Δ
src/List.tsx 99.46% <100.00%> (-0.04%) ⬇️
src/hooks/useGetSize.ts 100.00% <100.00%> (ø)
src/utils/CacheMap.ts 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@zombieJ zombieJ merged commit 01ed1f0 into master Aug 18, 2023
8 of 9 checks passed
@zombieJ zombieJ deleted the speed-up branch August 18, 2023 08:32
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