[evolution-data-server/email-factory-3-4] Some disk I/O optimization.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/email-factory-3-4] Some disk I/O optimization.
- Date: Thu, 12 Jan 2012 14:30:30 +0000 (UTC)
commit 374df31ff7d8f39645f43606ae711940c9469f5a
Author: Srinivasa Ragavan <sragavan gnome org>
Date: Thu Jan 12 19:55:29 2012 +0530
Some disk I/O optimization.
camel/camel-filter-driver.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-filter-driver.c b/camel/camel-filter-driver.c
index 3b065e2..1044e7d 100644
--- a/camel/camel-filter-driver.c
+++ b/camel/camel-filter-driver.c
@@ -1509,10 +1509,14 @@ camel_filter_driver_filter_folder (CamelFilterDriver *driver,
CAMEL_MESSAGE_DELETED |
CAMEL_MESSAGE_SEEN, ~0);
- if (cache)
+ if (cache && i%10 == 0)
camel_uid_cache_save_uid (cache, uids->pdata[i]);
}
+ /* Save the cache of any pending mails. */
+ if (cache)
+ camel_uid_cache_save_uid (cache, uids->pdata[i]);
+
if (p->defaultfolder) {
report_status (driver, CAMEL_FILTER_STATUS_PROGRESS, 100, _("Syncing folder"));
camel_folder_synchronize_sync (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]