[tracker] libtracker-miner: Small optimization
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Small optimization
- Date: Wed, 12 Sep 2018 11:54:28 +0000 (UTC)
commit 4b7980b92d15167ae43e79211faf1358c8cbe575
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Sep 9 12:22:25 2018 +0200
libtracker-miner: Small optimization
Using get_file() should be equivalent to peek_file() given that the
file is already interned, but the latter takes less detours to find
this out.
src/libtracker-miner/tracker-file-notifier.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 53795468d..6d620a74e 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -2100,10 +2100,7 @@ tracker_file_notifier_invalidate_file_iri (TrackerFileNotifier *notifier,
g_return_if_fail (G_IS_FILE (file));
priv = notifier->priv;
- canonical = tracker_file_system_get_file (priv->file_system,
- file,
- G_FILE_TYPE_REGULAR,
- NULL);
+ canonical = tracker_file_system_peek_file (priv->file_system, file);
if (!canonical) {
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]