[geary] Reduce workload during search table re-population
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Reduce workload during search table re-population
- Date: Tue, 15 Apr 2014 19:42:40 +0000 (UTC)
commit ec23e76777c414d96ec504abb0740e2c33043920
Author: Jim Nelson <jim yorba org>
Date: Tue Apr 15 12:09:00 2014 -0700
Reduce workload during search table re-population
src/engine/imap-db/imap-db-account.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/engine/imap-db/imap-db-account.vala b/src/engine/imap-db/imap-db-account.vala
index 034cb62..ccb8e3a 100644
--- a/src/engine/imap-db/imap-db-account.vala
+++ b/src/engine/imap-db/imap-db-account.vala
@@ -1098,13 +1098,13 @@ private class Geary.ImapDB.Account : BaseObject {
search_index_monitor.set_interval(0, total);
search_index_monitor.notify_start();
- while (!yield populate_search_table_batch_async(100, cancellable)) {
+ while (!yield populate_search_table_batch_async(50, cancellable)) {
// With multiple accounts, meaning multiple background threads
// doing such CPU- and disk-heavy work, this process can cause
// the main thread to slow to a crawl. This delay means the
// update takes more time, but leaves the main thread nice and
// snappy the whole time.
- yield Geary.Scheduler.sleep_ms_async(50);
+ yield Geary.Scheduler.sleep_ms_async(250);
}
} catch (Error e) {
debug("Error populating %s search table: %s", account_information.email, e.message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]