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(css_parser): avoid expensive check when parsing an id #3774

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

Conaclos
Copy link
Member

@Conaclos Conaclos commented Sep 3, 2024

Summary

Attempt to improve a hot code path (CSS identifier parsing).

Test Plan

CI should pass.

@github-actions github-actions bot added A-Parser Area: parser L-JavaScript Language: JavaScript and super languages L-CSS Language: CSS L-JSON Language: JSON and super languages labels Sep 3, 2024
@Conaclos Conaclos force-pushed the conaclos/improve-css-id-consumption branch from ecabce5 to 96b9643 Compare September 3, 2024 20:43
Copy link
Contributor

github-actions bot commented Sep 3, 2024

Parser conformance results on

js/262

Test result main count This PR count Difference
Total 48504 48504 0
Passed 47313 47313 0
Failed 1191 1191 0
Panics 0 0 0
Coverage 97.54% 97.54% 0.00%

jsx/babel

Test result main count This PR count Difference
Total 40 40 0
Passed 37 37 0
Failed 3 3 0
Panics 0 0 0
Coverage 92.50% 92.50% 0.00%

symbols/microsoft

Test result main count This PR count Difference
Total 6568 6568 0
Passed 2201 2201 0
Failed 4367 4367 0
Panics 0 0 0
Coverage 33.51% 33.51% 0.00%

ts/babel

Test result main count This PR count Difference
Total 671 671 0
Passed 599 599 0
Failed 72 72 0
Panics 0 0 0
Coverage 89.27% 89.27% 0.00%

ts/microsoft

Test result main count This PR count Difference
Total 18417 18417 0
Passed 14099 14099 0
Failed 4318 4318 0
Panics 0 0 0
Coverage 76.55% 76.55% 0.00%

@Conaclos Conaclos force-pushed the conaclos/improve-css-id-consumption branch from 96b9643 to 411a485 Compare September 3, 2024 20:46
Copy link

codspeed-hq bot commented Sep 3, 2024

CodSpeed Performance Report

Merging #3774 will not alter performance

Comparing conaclos/improve-css-id-consumption (411a485) with main (70557f2)

Summary

✅ 99 untouched benchmarks

@Conaclos Conaclos merged commit 30698e4 into main Sep 3, 2024
16 checks passed
@Conaclos Conaclos deleted the conaclos/improve-css-id-consumption branch September 3, 2024 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Parser Area: parser L-CSS Language: CSS L-JavaScript Language: JavaScript and super languages L-JSON Language: JSON and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant