Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Conversation

jryans
Copy link
Collaborator

@jryans jryans commented Nov 12, 2019

This adds very basic cache (literally just a Map for now) to store room alias
to room ID mappings. The improves the perceived performance of Riot when
switching rooms via browser navigation (back / forward), as we no longer try to
resolve the room alias every time.

The cache is only in memory, so reloading manually or as part of the clear cache
process will start afresh.

Fixes element-hq/element-web#10020

@jryans jryans requested a review from a team November 12, 2019 11:48
This adds very basic cache (literally just a `Map` for now) to store room alias to room ID mappings. The improves the perceived performance of Riot when switching rooms via browser navigation (back / forward), as we no longer try to resolve the room alias every time. The cache is only in memory, so reloading manually or as part of the clear cache process will start afresh. Fixes element-hq/element-web#10020
@jryans jryans force-pushed the jryans/alias-cache branch from afdb0ad to d72dedb Compare November 12, 2019 11:54
@jryans jryans changed the title Cache room alias to room ID mapping in memory Improve room switching performance with alias cache Nov 12, 2019
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine otherwise

@jryans jryans requested a review from t3chguy November 12, 2019 14:20
@jryans jryans merged commit c9ca8b9 into develop Nov 12, 2019
@ofek
Copy link

ofek commented Nov 12, 2019

Thank you!!!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants