[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 82/116] libtracker-miner: Small optimization



commit d0d32777e3208fbfd847b8d060f510b3dc41dd19
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 fdd6e11f3..108528482 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]