summaryrefslogtreecommitdiffstats
path: root/common/synchronizer.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-07 14:56:03 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-07 14:56:03 +0100
commit3506c78afcfcf63d74d1b57b53518ea27dae2f8c (patch)
treeda98a2f754e870d47316d8bf8b85dc84f4d62517 /common/synchronizer.h
parent4ecb10d3b1294d03578c28467c0f3759b3496e0b (diff)
downloadsink-3506c78afcfcf63d74d1b57b53518ea27dae2f8c.tar.gz
sink-3506c78afcfcf63d74d1b57b53518ea27dae2f8c.zip
Merge synchronization requests for individual mails of the same folder.
We use this frequently when loading conversations, so this results in a significant preformance improvement.
Diffstat (limited to 'common/synchronizer.h')
-rw-r--r--common/synchronizer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/synchronizer.h b/common/synchronizer.h
index 120a8a5..af042cb 100644
--- a/common/synchronizer.h
+++ b/common/synchronizer.h
@@ -175,6 +175,11 @@ protected:
175 */ 175 */
176 virtual QList<Synchronizer::SyncRequest> getSyncRequests(const Sink::QueryBase &query); 176 virtual QList<Synchronizer::SyncRequest> getSyncRequests(const Sink::QueryBase &query);
177 177
178 /**
179 * This allows the synchronizer to merge new requests with existing requests in the queue.
180 */
181 virtual void mergeIntoQueue(const Synchronizer::SyncRequest &request, QList<Synchronizer::SyncRequest> &queue);
182
178protected: 183protected:
179 Sink::Log::Context mLogCtx; 184 Sink::Log::Context mLogCtx;
180private: 185private: