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

feat(desktop): handle the large data on the messages #1685

Merged
merged 1 commit into from
Jun 7, 2024
Merged

Conversation

ysfscream
Copy link
Member

PR Checklist

If you have any questions, you can refer to the Contributing Guide

What is the current behavior?

No special handling is performed when a large message is received, causing lag or a white screen during rendering.

Issue Number

Example: #1232

What is the new behavior?

Set a maximum length of 512KB. When the payload size exceeds this limit, the message content is truncated and partially displayed. The collapsed message can be clicked to view the full message or the large data can be saved to a local file for viewing, optimizing performance and interaction.

Note: The current optimization is only for the rendering layer, not the data layer, so performance improvements are limited.

image

image

image

Does this PR introduce a breaking change?

  • Yes
  • No

Specific Instructions

Are there any specific instructions or things that should be known prior to review?

Other information

@ysfscream ysfscream requested a review from Red-Asuka June 7, 2024 03:35
@ysfscream ysfscream self-assigned this Jun 7, 2024
@ysfscream ysfscream added enhancement New feature or request feature This pr is a feature performance Improve some performance desktop MQTTX Desktop labels Jun 7, 2024
@ysfscream ysfscream added this to the v1.10.0 milestone Jun 7, 2024
@Red-Asuka Red-Asuka merged commit 2c738a6 into main Jun 7, 2024
2 checks passed
@Red-Asuka Red-Asuka deleted the ysf/desktop branch June 7, 2024 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop MQTTX Desktop enhancement New feature or request feature This pr is a feature performance Improve some performance
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants