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

Fast LineColumn conversion (for #1301) #1307

Merged
merged 6 commits into from
Feb 7, 2025
Merged

Fast LineColumn conversion (for #1301) #1307

merged 6 commits into from
Feb 7, 2025

Conversation

linxuanm
Copy link
Member

@linxuanm linxuanm commented Feb 7, 2025

Caches line positions in SourceFile.

Copy link

codecov bot commented Feb 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.59%. Comparing base (0505c78) to head (e8ceeb0).
Report is 8 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1307      +/-   ##
============================================
- Coverage     83.59%   83.59%   -0.01%     
- Complexity     4382     4389       +7     
============================================
  Files           396      397       +1     
  Lines         12664    12682      +18     
  Branches       1452     1454       +2     
============================================
+ Hits          10587    10601      +14     
- Misses         1303     1306       +3     
- Partials        774      775       +1     

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

@HoshinoTented HoshinoTented linked an issue Feb 7, 2025 that may be closed by this pull request
Copy link
Contributor

@HoshinoTented HoshinoTented left a comment

Choose a reason for hiding this comment

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

LGTM

@ice1000 ice1000 added performance parser Lexer, parser, producer, parse tree, etc. labels Feb 7, 2025
@ice1000 ice1000 added this to the v0.38 milestone Feb 7, 2025
@ice1000 ice1000 merged commit 2275336 into main Feb 7, 2025
5 of 6 checks passed
@ice1000 ice1000 deleted the fast-line-offset branch February 7, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser Lexer, parser, producer, parse tree, etc. performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use indexedLines to cache the lineCol-offset correspondence
3 participants