element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
Apache License 2.0
10.84k stars 1.91k forks source link

Room-Swap Performance Analysis #5920

Open lukebarnard1 opened 6 years ago

lukebarnard1 commented 6 years ago

I feel like it'd be fun to put an perf analysis of swapping rooms in a GH issue so here it is. I'll update this comment as I find more interesting things. The chosen benchmark will be swapping between rooms, specifically swapping from #riot-dev:matrix.orgto #riot:matrix.org (having viewed those rooms previously, paginating events in as such).

Observations; it takes about:

Possible Optimisations

Reimplement RoomView to not mount on room-switch

This would remedy:

Limit Read Receipts before mounting them

This would remedy:

ara4n commented 6 years ago

Here's a very similar bug I filed 1000 bugs earlier :) https://github.com/vector-im/riot-web/issues/4997