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

avoid unneeded lookups in memberDict #2153

Merged
merged 2 commits into from
Sep 7, 2018
Merged

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels commented Sep 6, 2018

have members be an array of RoomMember instead of userId, so
we can avoid multiple lookups when sorting, rendering, ...

Apart from being a clean-up, this also saves 5ms (with 1k members) or so when refreshing the members.

Related to element-hq/element-web#7263

have members be an array of RoomMember instead of userId, so
we can avoid multiple lookups when sorting, rendering, ...
@bwindels bwindels requested a review from a team September 6, 2018 16:24
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

Assuming this is failing because develop needs merging in, lgtm.

@bwindels bwindels merged commit aa8e998 into develop Sep 7, 2018
@bwindels bwindels deleted the bwindels/optimizememberlist branch September 7, 2018 17:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants