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

Improve highlighter performance #3341

Merged
merged 1 commit into from
Oct 3, 2023
Merged

Improve highlighter performance #3341

merged 1 commit into from
Oct 3, 2023

Conversation

jedel1043
Copy link
Member

This PR moves the compilation of the Regex used by the highlighter to the RLHelper itself, since this avoids having to recompile the regex every time a line is highlighted. Also adds some small improvements and lint fixes.

@jedel1043 jedel1043 added cli Issues and PRs related to the Boa command line interface. Internal Category for changelog labels Oct 3, 2023
@jedel1043 jedel1043 added this to the v0.18.0 milestone Oct 3, 2023
@jedel1043 jedel1043 requested a review from a team October 3, 2023 05:20
@github-actions
Copy link

github-actions bot commented Oct 3, 2023

Test262 conformance changes

Test result main count PR count difference
Total 95,574 95,574 0
Passed 75,273 75,273 0
Ignored 19,482 19,482 0
Failed 819 819 0
Panics 0 0 0
Conformance 78.76% 78.76% 0.00%

@codecov
Copy link

codecov bot commented Oct 3, 2023

Codecov Report

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

Comparison is base (38b9f17) 49.51% compared to head (21a9bcd) 49.51%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3341      +/-   ##
==========================================
- Coverage   49.51%   49.51%   -0.01%     
==========================================
  Files         446      446              
  Lines       43777    43779       +2     
==========================================
  Hits        21678    21678              
- Misses      22099    22101       +2     
Files Coverage Δ
boa_cli/src/debug/mod.rs 0.00% <ø> (ø)
boa_cli/src/main.rs 0.61% <ø> (ø)
boa_cli/src/helper.rs 0.00% <0.00%> (ø)

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

Copy link
Member

@HalidOdat HalidOdat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! looks good to me! :)

Copy link
Member

@Razican Razican left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small comment that doesn't prevent merging. We might be able to optimize the highlighter even more.

@Razican Razican added this pull request to the merge queue Oct 3, 2023
Merged via the queue into main with commit 3f80823 Oct 3, 2023
@jedel1043 jedel1043 deleted the improve-highlighter branch October 3, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Issues and PRs related to the Boa command line interface. Internal Category for changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants