Skip to content

Reduce the size of the Mailbox objects#4389

Merged
TimWolla merged 1 commit intomasterfrom
email-serialize-size
Jul 9, 2021
Merged

Reduce the size of the Mailbox objects#4389
TimWolla merged 1 commit intomasterfrom
email-serialize-size

Conversation

@TimWolla
Copy link
Copy Markdown
Member

@TimWolla TimWolla commented Jul 9, 2021

This introduces a small BC break for classes inheriting from Mailbox or
UserMailbox that directly access the language or user properties instead of
the getter methods. But this is easily fixed.

Resolves #4387

This introduces a small BC break for classes inheriting from Mailbox or
UserMailbox that directly access the `language` or `user` properties instead of
the getter methods. But this is easily fixed.

Resolves #4387
@TimWolla TimWolla requested review from a user and dtdesign July 9, 2021 10:28
@ghost
Copy link
Copy Markdown

ghost commented Jul 9, 2021

Can you avoid the BC issue with __sleep() and __wakeup()?

@TimWolla
Copy link
Copy Markdown
Member Author

TimWolla commented Jul 9, 2021

That technically still would introduce a BC issue, because an adjusted Language in the downstream class will not round-trip the background queue, while it previously did. This is more silent and subtle, so I preferred the “loud” version that will explode due to missing objects.

Copy link
Copy Markdown

@ghost ghost left a comment

Choose a reason for hiding this comment

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

The changes themselves LGTM.

@TimWolla TimWolla merged commit 46125d6 into master Jul 9, 2021
@TimWolla TimWolla deleted the email-serialize-size branch July 9, 2021 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Store the languageID instead of the Language in Mailbox

2 participants