-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
The tests will fail until #3003 is merged |
There was a problem hiding this 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?
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/ |
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