element-web icon indicating copy to clipboard operation
element-web copied to clipboard

Room switch time: Room list is re-mounting tiles again

Open turt2live opened this issue 2 years ago • 1 comments

Steps to reproduce

  1. Have lots of rooms
  2. Switch rooms
  3. Notice the lag

Outcome

What did you expect?

A very fast room switch time (a key metric of ours)

What happened instead?

A not-so-fast room switch.

The full room switch took nearly 10 seconds: image

The click took 42ms to handle: image

with a subsequent focusin taking 130ms: image

then viewRoom took 928ms (!!): image

causing the task to take 1.3s overall: image

The lag in this task is what is noticeable as "switch lag": the client appears frozen when tasks run over like this.

It also appears sentry is having issues keeping up: image image

Additionally, the Tooltip unmounts are taking massive amounts of time within the viewRoom scope: image

The concerning part is that there's a few dozen of these sorts of stacks in the profile: image

this indicates that the tiles are re-mounting when they shouldn't be. Maybe one or two, but not dozens from a single click.


Overall, we should aim to optimize out some of the concerns here.

Profile is available to team members upon request :)

Operating system

Windows 10

Application version

Nightly (2022-08-04)

How did you install the app?

The Internet

Homeserver

t2l.io

Will you send logs?

No

turt2live avatar Aug 04 '22 22:08 turt2live

Related: #21738 #14574 #4997 #125 #5920 #8623

bkil avatar Sep 14 '22 15:09 bkil