VIM: Improve performance of folders_render

Simply use query.count_[messages,threads] instead of actually running
the query and using the count attribute of the result set.
This commit is contained in:
Franz Fellner 2015-01-22 21:16:47 +01:00 committed by David Bremner
parent 9d4ff29ad8
commit ce9f559b86

View file

@ -644,7 +644,7 @@ ruby << EOF
q.add_tag_exclude(t)
}
$searches << search
count = count_threads ? q.search_threads.count : q.search_messages.count
count = count_threads ? q.count_threads : q.count_messages
b << "%9d %-20s (%s)" % [count, name, search]
end
end