Cancelling nautilus search does not immediately reduce tracker-miner-fs-3 CPU usage
When starting a nautilus search by pressing any key and immediately cancelling it again by pressing escape, I can observe that the CPU usage for tracker-miner-fs-3 remains high for a couple of seconds after pressing escape. From a quick test it seems like the cancellable used for tracker_sparql_connection_query_async()
in nautilus-search-engine-tracker.c
gets cancelled immediately when pressing escape and query_callback
gets called with error != NULL
, so I'm guessing tracker is still doing a lot of unnecessary work on the server side.
This might affect searches for longer words even more, because every time a new character is entered the old query is cancelled and a new query is started and it seems like the CPU usage adds up, but I haven't done any proper measurements yet.
tracker 3.0.1-1.fc33, tracker-miners 3.0.1-1.fc33, nautilus 3.38.1-1.fc33