Conversation
DMRobertson
left a comment
There was a problem hiding this comment.
Seems reasonable. I guess this only helps a lot if we have a huge queue of replication commands to work through?
(Aside: I was slightly surprised these classes aren't defined with attrs or stdlib dataclasses, which would make it easier to turn on __slots__.)
DMRobertson
left a comment
There was a problem hiding this comment.
And I even went through and sanity checked that the slots matched the __init__ signatures after I felt guilty for doing a speedy review.
Due to the |
It should help just in general with allocating less memory. |
I'm hoping this will slim down our replication needs very very slightly, but it is also minimal effort.
WIth this change we have the following, sizes are done using
_get_size_of._SimpleCommandsubclassRdataCommandPositionCommandUserSyncCommandClearUserSyncsCommandFederationAckCommandUserIpCommandLockReleasedCommandCode to produce the above