summaryrefslogtreecommitdiff
path: root/src/contacts-utils.vala
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2022-08-17 00:14:50 +0200
committerNiels De Graef <nielsdegraef@gmail.com>2022-08-17 01:25:56 +0200
commit7a4aa6227830680ab790e2de314aa7b7e6e15da5 (patch)
tree7837f8bc43914fba2310af06b50c5caea1d39ee9 /src/contacts-utils.vala
parent3b343fda88a6f328f5664104c548ee5f5e3b9f44 (diff)
downloadgnome-contacts-7a4aa6227830680ab790e2de314aa7b7e6e15da5.tar.gz
query-filter: Optimize for SimpleQuery
Before this commit, the QueryFilter used a very naive implementation where it would just re-filter all contacts if something change (like a query string). This wasn't of course the most performant thing to do, and after some investigation we found out that on each search bar change, we were using quite some CPU. This commit adds some optimizations by avoiding unnecessary refiltering of contacts where possible. This shaves off quite a few percentages of CPU usage when doing some searching in the side bar.
Diffstat (limited to 'src/contacts-utils.vala')
0 files changed, 0 insertions, 0 deletions