Commit cfff843d authored by Michael Gratton's avatar Michael Gratton 🤞

Merge branch 'cherry-pick-940241bb' into 'gnome-3-32'

Merge branch 'improve-conversation-loading-performance' into 'gnome-32'

See merge request !201
parents 8cff1f06 0819fd1a
Pipeline #73889 passed with stages
in 26 minutes
...@@ -816,6 +816,7 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface { ...@@ -816,6 +816,7 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
// but keep the scrollbar adjusted so that the first // but keep the scrollbar adjusted so that the first
// interesting message remains visible. // interesting message remains visible.
Gtk.Adjustment listbox_adj = get_adjustment(); Gtk.Adjustment listbox_adj = get_adjustment();
int i_mail_loaded = 0;
foreach (Geary.Email email in to_insert) { foreach (Geary.Email email in to_insert) {
EmailRow row = add_email(email, false); EmailRow row = add_email(email, false);
// Since uninteresting rows are inserted above the // Since uninteresting rows are inserted above the
...@@ -831,7 +832,9 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface { ...@@ -831,7 +832,9 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
loading_height = 0; loading_height = 0;
yield row.view.load_avatar(this.avatar_store); yield row.view.load_avatar(this.avatar_store);
yield throttle_loading(); if (i_mail_loaded % 10 == 0)
yield throttle_loading();
++i_mail_loaded;
} }
set_sort_func(on_sort); set_sort_func(on_sort);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment