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

Inline images mail slow to display #758

Merged
merged 6 commits into from
May 25, 2023
Merged

Conversation

adrien-coye
Copy link
Contributor

@adrien-coye adrien-coye commented May 24, 2023

Abstract

Performance issues on displaying large emails with inline pictures.
The mainthread was pinned, batching image processing greatly improves the UX in my testing.

Misc

Mutating the dom of the email is super costly, therefore I used batching to process images and mutate less the content of the email view that is rendered on the main thread.
I went from 300 sec to 50 ish for a mail with a lot of small images, while keeping the UI responsive

@adrien-coye adrien-coye self-assigned this May 24, 2023
@adrien-coye adrien-coye marked this pull request as ready for review May 25, 2023 07:51
@adrien-coye adrien-coye requested a review from a team as a code owner May 25, 2023 07:51
@sonarcloud
Copy link

sonarcloud bot commented May 25, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Ambrdctr Ambrdctr merged commit 6d48e54 into master May 25, 2023
4 checks passed
@Ambrdctr Ambrdctr deleted the inlineImagesMailSlowToDisplay branch May 25, 2023 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants