Open Bug 1755505 Opened 4 years ago Updated 4 months ago

slow rendering of an email - many <mailto:xxx>

Categories

(Thunderbird :: Mail Window Front End, defect)

Thunderbird 91
x86_64
All
defect

Tracking

(Not tracked)

People

(Reporter: ilmari.lauhakangas, Unassigned)

References

Details

(Keywords: dupeme, perf, testcase)

Attachments

(4 files)

I was helping someone to build LibreOffice on Windows and they sent me bits of text that were syntax-highlighted code, copied from https://wiki.documentfoundation.org/Development/lode#Getting_Started

Displaying it is very slow, especially, if I hit Reply.

I anonymised the mail and trimmed it down. It does reproduce the slowness although sometimes it renders quickly. It was even slower with the full quoted discussion present.

TB 91.6.0 (64-bit)
Arch Linux

Not slow at all for me on Mac using 98.0b2. The message is so small I can't imagine it being slow on any machine - so it's odd.

Not slow opening for me testing it on Fedora 35 Workstation using 91.5.0, 91.6.1 or 98.0b2, or using 91.6.1 and 98.0b2 on Windows 10.

Also, not slow after clicking Reply to open a composition window.

Did multiple tests with each version.

After some tedious anonymising work, here is a bigger version. Replying is very slow at least.

(In reply to buovjaga from comment #3)

Created attachment 9264821 [details]
Bigger email for testing perf

After some tedious anonymising work, here is a bigger version. Replying is very slow at least.

5 seconds for reply. I suspect it's all the mailto:

Keywords: dupeme
Severity: -- → S4
Summary: Particular styles slow down the rendering of an email → slow rendering of an email - many <mailto:xxx>

A performance profile may help move this forward.
https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance

Attached file Performance profile

Recorded clicking reply in attachment 9264821 [details].

If I read it right, most work happens in nsInputStreamPump::OnInputStreamReady

Does this also reproduce with version 128. If possible please obtain an updated performance profile https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance

Flags: needinfo?(ilmari.lauhakangas)
Keywords: testcase
Whiteboard: [has performance profile]

It still thinks for some seconds when replying.
TB 128.4.0esr (64-bit) on Arch Linux

Flags: needinfo?(ilmari.lauhakangas)

Seems unlikely this would be linux-specific

OS: Linux → All

Thanks for the performance profile. Unfortunately they are from linux builds for which we don't have symbols.

The second testcase message is barely slow on loading. But replying is noticeably slow. I suspect this will be a duplicate of something in https://mzl.la/4cJPaIR. Perhaps Bug 289644 - "Reply" or "reply all" is slow for large messages - O(n^2) performance

Whiteboard: [has performance profile]
See Also: → 289644
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: