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

Minor optimization of line number length logic #26845

Merged
merged 1 commit into from
Mar 15, 2025

Conversation

mgsloan
Copy link
Contributor

@mgsloan mgsloan commented Mar 15, 2025

In layout_excerpt_gutter, compute max line number length once instead of for every row

In max_line_number_width, use ilog10 instead of converting to floats and back

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 15, 2025
In `layout_excerpt_gutter`, compute max line number length once instead of for every row

In `max_line_number_width`, use ilog10 instead of converting to floats and back
@mgsloan mgsloan force-pushed the minor-optimization-of-line-number-length-logic branch from b527a38 to 3892090 Compare March 15, 2025 19:16
@mgsloan mgsloan enabled auto-merge (squash) March 15, 2025 19:16
@mgsloan mgsloan merged commit ef91e7a into main Mar 15, 2025
15 checks passed
@mgsloan mgsloan deleted the minor-optimization-of-line-number-length-logic branch March 15, 2025 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant