Skip to content

Conversation

@ArtificialOwl
Copy link
Member

@ArtificialOwl ArtificialOwl commented Feb 12, 2024

follow-up on the previous improvement from @juliushaertl : #35970

The idea is to avoid some formatting of the payload as soon as we know for sure that it will not be used

@ArtificialOwl ArtificialOwl requested review from a team, icewind1991, juliusknorr, nfebe and sorbaugh and removed request for a team February 12, 2024 14:47
@ArtificialOwl ArtificialOwl added the 3. to review Waiting for reviews label Feb 12, 2024
@ArtificialOwl ArtificialOwl added this to the Nextcloud 29 milestone Feb 12, 2024
@ArtificialOwl ArtificialOwl force-pushed the enh/noid/leave-log-early-if-no-crash-reporter branch from bf68594 to 18a6b62 Compare February 12, 2024 18:17
@ArtificialOwl
Copy link
Member Author

(failing test not related)

@ArtificialOwl ArtificialOwl force-pushed the enh/noid/leave-log-early-if-no-crash-reporter branch from 18a6b62 to b9e0530 Compare February 13, 2024 10:02
Copy link
Member

@icewind1991 icewind1991 left a comment

Choose a reason for hiding this comment

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

This would break BeforeMessageLoggedEvent

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
@ArtificialOwl ArtificialOwl force-pushed the enh/noid/leave-log-early-if-no-crash-reporter branch from b9e0530 to 5aff876 Compare February 14, 2024 10:41
@ArtificialOwl
Copy link
Member Author

This would break BeforeMessageLoggedEvent

I added a hasListeners() and exit the method if no BeforeMessageLoggedEvent is registered.
Not sure the performance gain anymore.
Your thoughts ?

@ArtificialOwl ArtificialOwl force-pushed the enh/noid/leave-log-early-if-no-crash-reporter branch from 5aff876 to bf6cb92 Compare February 14, 2024 11:20
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
@ArtificialOwl ArtificialOwl force-pushed the enh/noid/leave-log-early-if-no-crash-reporter branch from bf6cb92 to 2232753 Compare February 14, 2024 15:06
Copy link
Member

@icewind1991 icewind1991 left a comment

Choose a reason for hiding this comment

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

log events still work

@skjnldsv skjnldsv merged commit 5207274 into master Feb 23, 2024
@skjnldsv skjnldsv deleted the enh/noid/leave-log-early-if-no-crash-reporter branch February 23, 2024 20:56
@blizzz blizzz mentioned this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants