From 87c063b112b8c7dc1a858af8406008da48b5260b Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 8 Jan 2024 00:21:42 +0100 Subject: Speedup room switching by forcing a bigger initial item size --- src/timeline/TimelineModel.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/timeline/TimelineModel.cpp') diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index a49dde3c..05a3c45c 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -997,6 +997,8 @@ TimelineModel::multiData(const QModelIndex &index, QModelRoleDataSpan roleDataSp return; } + // nhlog::db()->debug("MultiData called for {}", index.row()); + // HACK(Nico): fetchMore likes to break with dynamically sized delegates and reuseItems if (index.row() + 1 == rowCount() && !m_paginationInProgress) const_cast(this)->fetchMore(index); @@ -1025,6 +1027,8 @@ TimelineModel::multiData(const QString &id, return; } + // nhlog::db()->debug("MultiData called for {}", id.toStdString()); + auto event = events.get(id.toStdString(), relatedTo.toStdString()); if (!event) { -- cgit 1.5.1