Skip to content

[perf] Use existing line numbers in CommentBlock for line_count - #991

Merged
reese merged 1 commit into
trunkfrom
reese-line-count-perf
Oct 31, 2026
Merged

reese merged 1 commit into
trunkfrom
reese-line-count-perf

Conversation

@reese

@reese reese commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

On the tin -- CommentBlock already has a span of line numbers, so there's no reason to iterate over the lines (allocating strings along the way) just to count something we already figured out elsewhere.

@reese
reese requested a review from froydnj October 31, 2026 07:06
@reese
reese merged commit 7c6ddaa into trunk Oct 31, 2026
8 checks passed
@reese
reese deleted the reese-line-count-perf branch October 31, 2026 11:43
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.

2 participants