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

More efficient rownum_translation() #1925

Merged
merged 2 commits into from
Nov 22, 2024

Conversation

magnusdv
Copy link
Contributor

@magnusdv magnusdv commented Nov 22, 2024

Summary

This PR improves the performance of rownum_translation(), replacing an inefficient loop with match(). Closes #1924.

Related GitHub Issues and PRs

Checklist

@olivroy
Copy link
Collaborator

olivroy commented Nov 22, 2024

Awesome ! Thank you very much! Feel free to send more of these improvements if you identify other ones! The test suite is pretty robust to prevent regression

they end up piling up and rendering time is much faster than it was just 1 year ago

@olivroy

This comment has been minimized.

@magnusdv
Copy link
Contributor Author

Thanks! I've updated the description.

Copy link
Member

@rich-iannone rich-iannone left a comment

Choose a reason for hiding this comment

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

LGTM and thanks!

@rich-iannone rich-iannone merged commit 96c4dba into rstudio:master Nov 22, 2024
12 checks passed
@magnusdv magnusdv deleted the rowname-translation branch November 23, 2024 16: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.

Slow rendering of large tables
3 participants