Commit 940241bb authored by Michael Gratton's avatar Michael Gratton 🤞

Merge branch 'improve-conversation-loading-performance' into 'mainline'

Improve conversation loading performance

See merge request !181
parents dc656d7a ca399921
Pipeline #73883 passed with stages
in 23 minutes and 5 seconds
......@@ -826,6 +826,7 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
// but keep the scrollbar adjusted so that the first
// interesting message remains visible.
Gtk.Adjustment listbox_adj = get_adjustment();
int i_mail_loaded = 0;
foreach (Geary.Email email in to_insert) {
EmailRow row = add_email(email, false);
// Since uninteresting rows are inserted above the
......@@ -841,7 +842,9 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
loading_height = 0;
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);
......
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