-
Notifications
You must be signed in to change notification settings - Fork 2k
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
streamable: Introduce Streamable.__post_init__
processing cache
#11730
streamable: Introduce Streamable.__post_init__
processing cache
#11730
Conversation
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This fixes default value assignments after Chia-Network#10561 but also leads to less perfomance due to `__post_init__` being called which at least gets mitigated by Chia-Network#11730.
…11732) * streamable: Use constructor in `dataclass_from_dict` This fixes default value assignments after #10561 but also leads to less perfomance due to `__post_init__` being called which at least gets mitigated by #11730. * tests: Test default values with `from_json_dict` * Convert to `str`, then compare.
9116d57
to
a193b22
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
a193b22
to
1aa398e
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
1aa398e
to
2bdd3e9
Compare
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.
Are there streamable CI tests that would find regressions in here?
Yes there are |
Speeds up normal constructor calls:
Based on:
dataclass_from_dict
validation, add more tests #10652