Skip to content

Implement modify_list and use substitute modifyList calls with it #3005

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

Merged
merged 7 commits into from
Nov 19, 2018

Conversation

thomasp85
Copy link
Member

This PR implements a simple and performant modifyList alternative that is ~5 times faster. It will mainly speed up element rendering where modifyList was used to apply theme settings and consistently showed up in profilings as the slowest part of the ggplot2 code

@thomasp85
Copy link
Member Author

The tests will fail until #3003 is merged

Copy link
Member

@hadley hadley left a comment

Choose a reason for hiding this comment

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

Looks good. I'd also add a modifyList() that calls stop, and add a test or too for modify_list(). And maybe rename the file to performance or similar?

@thomasp85 thomasp85 merged commit 828e948 into tidyverse:master Nov 19, 2018
@lock
Copy link

lock bot commented May 18, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators May 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants