[tracker] libtracker-sparql: Reduce D-Bus proxy initialization time



commit f6641e9a808e2807081defb3c40126e452936816
Author: Jürg Billeter <j bitron ch>
Date:   Mon Nov 29 13:38:27 2010 +0100

    libtracker-sparql: Reduce D-Bus proxy initialization time
    
    We do not use properties or signals with these proxies. This change
    avoids unnecessary D-Bus calls at initialization time to load
    properties and connect to signals.

 src/libtracker-sparql/tracker-backend.vala |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-backend.vala b/src/libtracker-sparql/tracker-backend.vala
index 279a677..ffe479f 100644
--- a/src/libtracker-sparql/tracker-backend.vala
+++ b/src/libtracker-sparql/tracker-backend.vala
@@ -61,7 +61,8 @@ class Tracker.Sparql.Backend : Connection {
 	requires (is_constructed) {
 		Tracker.Backend.Status status = Bus.get_proxy_sync (BusType.SESSION,
 		                                                    TRACKER_DBUS_SERVICE,
-		                                                    TRACKER_DBUS_OBJECT_STATUS);
+		                                                    TRACKER_DBUS_OBJECT_STATUS,
+		                                                    DBusProxyFlags.DO_NOT_LOAD_PROPERTIES | DBusProxyFlags.DO_NOT_CONNECT_SIGNALS);
 		status.set_default_timeout (int.MAX);
 
 		// Makes sure the sevice is available
@@ -76,7 +77,8 @@ class Tracker.Sparql.Backend : Connection {
 	requires (is_constructed) {
 		Tracker.Backend.Status status = Bus.get_proxy_sync (BusType.SESSION,
 		                                                    TRACKER_DBUS_SERVICE,
-		                                                    TRACKER_DBUS_OBJECT_STATUS);
+		                                                    TRACKER_DBUS_OBJECT_STATUS,
+		                                                    DBusProxyFlags.DO_NOT_LOAD_PROPERTIES | DBusProxyFlags.DO_NOT_CONNECT_SIGNALS);
 		status.set_default_timeout (int.MAX);
 
 		// Makes sure the sevice is available



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]