From 3506c78afcfcf63d74d1b57b53518ea27dae2f8c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 7 Mar 2017 14:56:03 +0100 Subject: 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. --- common/synchronizer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/synchronizer.h') 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: */ virtual QList getSyncRequests(const Sink::QueryBase &query); + /** + * This allows the synchronizer to merge new requests with existing requests in the queue. + */ + virtual void mergeIntoQueue(const Synchronizer::SyncRequest &request, QList &queue); + protected: Sink::Log::Context mLogCtx; private: -- cgit v1.2.3