-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-76377: Rewrite plistlib with functional style. #4671
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
base: main
Are you sure you want to change the base?
Conversation
This speeds up most loadings and savings around 10%. Saving with XML format has been sped up to 2 times.
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.
just rebasing should be enough. great feature
This PR is stale because it has been open for 30 days with no activity. |
This PR is stale because it has been open for 30 days with no activity. |
This PR is stale because it has been open for 30 days with no activity. |
This PR is stale because it has been open for 30 days with no activity. |
end_handlers['true'] = lambda: add_object(True) | ||
end_handlers['false'] = lambda: add_object(False) | ||
end_handlers['integer'] = lambda: add_object(int(get_data())) | ||
end_handlers['real'] = lambda: add_object(float(get_data())) | ||
end_handlers['string'] = lambda: add_object(get_data()) |
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.
Do you think we could use functools.partial
s here (where arguments are constants)?
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.
What an awesome PR.
@serhiy-storchaka what is the state of this PR? Can we still somehow make it through?
This PR is stale because it has been open for 30 days with no activity. |
@serhiy-storchaka rebase? |
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.
rebase with some update in tests also needed for the change now?
This speeds up most loadings and savings around 10%. Saving
with XML format has been sped up to 2 times.
https://bugs.python.org/issue32196