Skip to content
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

performance: memorize MessageBody, don't run message parser multiple times for the same message #3951

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

Simon-Laux
Copy link
Member

@Simon-Laux Simon-Laux commented Jun 17, 2024

  • performance: memorize MessageBody, don't run message parser multiple times for the same message
  • performance: add limits for MessageBody text generally and for quotes, core already has limits on text size, but for the cases where core has a bug it's still useful to have a failsave

Copy link
Collaborator

@WofWca WofWca left a comment

Choose a reason for hiding this comment

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

Did not test, or measure performance, but looks nice and simple, the idea makes sense.

…times for the same message

Add pr number to changelog
…, core already has limits on text size, but for the cases where core has a bug it's still useful to have a failsave
@Simon-Laux Simon-Laux force-pushed the simon/perf-memorize-message-body branch from 7682962 to 25153c7 Compare June 17, 2024 17:31
@Simon-Laux Simon-Laux merged commit 717ee36 into main Jun 17, 2024
5 of 6 checks passed
@Simon-Laux Simon-Laux deleted the simon/perf-memorize-message-body branch June 17, 2024 17:31
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.

2 participants