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

perf: avoid duplicated findStyles in updateCSS #494

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

MadCcc
Copy link
Member

@MadCcc MadCcc commented Jan 8, 2024

updateCSS 在插入样式时会调用两遍 findStyles,由于中间不存在 dom 变化(或者可忽略),这里可以省去一半 findStyles 执行时间。

Copy link

vercel bot commented Jan 8, 2024

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

Name Status Preview Comments Updated (UTC)
util ❌ Failed (Inspect) Jan 8, 2024 8:06am

Copy link

codecov bot commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5a3231f) 91.51% compared to head (3f30a90) 91.54%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #494      +/-   ##
==========================================
+ Coverage   91.51%   91.54%   +0.03%     
==========================================
  Files          38       38              
  Lines         919      923       +4     
  Branches      280      283       +3     
==========================================
+ Hits          841      845       +4     
  Misses         76       76              
  Partials        2        2              

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

@MadCcc MadCcc merged commit 1459445 into master Jan 9, 2024
10 of 11 checks passed
@delete-merged-branch delete-merged-branch bot deleted the perf/avoid-duplicate-findStyles branch January 9, 2024 02:29
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.

1 participant