From 641a883bfdc65c7c9a86e799912e1aaf4dd63f05 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 30 Apr 2020 23:59:17 +0200 Subject: Optimize RoomList sorting Keep the almost sorted list around and sort by the raw timestamp value instead of doing the expensive toMSecSinceEpoch conversion. --- src/CacheStructs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/CacheStructs.h') diff --git a/src/CacheStructs.h b/src/CacheStructs.h index 2051afc8..ab7bbc71 100644 --- a/src/CacheStructs.h +++ b/src/CacheStructs.h @@ -39,7 +39,8 @@ struct DescInfo QString event_id; QString userid; QString body; - QString timestamp; + QString descriptiveTime; + uint64_t timestamp; QDateTime datetime; }; -- cgit 1.5.1