mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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:
parent
9d4ff29ad8
commit
ce9f559b86
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue