diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-08-04 17:12:56 +0200 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-08-04 17:12:56 +0200 |
commit | dd6cf808d69eaa52f7642def5f6f94500ee9bc79 (patch) | |
tree | 22a5f40c1d398af393be3aacb576b56d082fc03d /cmake | |
parent | 3f09b1b3e1edcdb7b21d7f3e4f4764f0bd084f30 (diff) | |
download | libquotient-dd6cf808d69eaa52f7642def5f6f94500ee9bc79.tar.gz libquotient-dd6cf808d69eaa52f7642def5f6f94500ee9bc79.zip |
User: optimise names/avatars storing and updating
The current mechanism relied on a complicated and fragile machinery
around setNameForRoom() and setAvatarForRoom() that maintained the
"most used" entity for a given user along with "other" ones. Given that
per-room avatars are pretty rare in Matrix, it's also been inefficient
as kitsune-benchmark-set_ForRoom branch shows. The new mechanism stores
the "default" (as per user profile) name and avatar and maintains
a singleton map of avatar objects across all users. Per-user profile
only (normally) exists for the local user so there's yet another
inefficiency that will be fixed further down the road by introducing
a separate user profile class.
Diffstat (limited to 'cmake')
0 files changed, 0 insertions, 0 deletions