diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2024-01-08 00:21:42 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2024-01-08 00:21:42 +0100 |
commit | 87c063b112b8c7dc1a858af8406008da48b5260b (patch) | |
tree | 424f374bcdc9e4866155ccd2fe587c9aa234abb4 /src | |
parent | Faster blurhash decode (diff) | |
download | nheko-87c063b112b8c7dc1a858af8406008da48b5260b.tar.xz |
Speedup room switching by forcing a bigger initial item size
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 | ||||
-rw-r--r-- | src/timeline/TimelineModel.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index c90cbc2e..efe9333d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -47,7 +47,7 @@ #ifdef QML_DEBUGGING #include <QQmlDebuggingEnabler> -QQmlDebuggingEnabler enabler; +QQmlTriviallyDestructibleDebuggingEnabler enabler; #endif #if HAVE_BACKTRACE_SYMBOLS_FD 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<TimelineModel *>(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) { |