summary refs log tree commit diff
path: root/src/RoomList.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-04-30 23:59:17 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-04-30 23:59:17 +0200
commit641a883bfdc65c7c9a86e799912e1aaf4dd63f05 (patch)
tree4462ebb39f7a5aa0626ed4f26ac292bd963e9de0 /src/RoomList.h
parentDon't store pending receipts in cache (diff)
downloadnheko-641a883bfdc65c7c9a86e799912e1aaf4dd63f05.tar.xz
Optimize RoomList sorting
Keep the almost sorted list around and sort by the raw timestamp value
instead of doing the expensive toMSecSinceEpoch conversion.
Diffstat (limited to 'src/RoomList.h')
-rw-r--r--src/RoomList.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/RoomList.h b/src/RoomList.h

index a0151f92..d3470666 100644 --- a/src/RoomList.h +++ b/src/RoomList.h
@@ -100,6 +100,7 @@ private: OverlayModal *joinRoomModal_; std::map<QString, QSharedPointer<RoomInfoListItem>> rooms_; + std::vector<QSharedPointer<RoomInfoListItem>> rooms_sort_cache_; QString selectedRoom_; bool isSortPending_ = false;