[tracker/init: 3/3] libtracker-sparql: Use lazy resolving for symbols in plugins
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/init: 3/3] libtracker-sparql: Use lazy resolving for symbols in plugins
- Date: Tue, 12 Oct 2010 14:13:29 +0000 (UTC)
commit 1c29a8fe7dae1731c7f0554363185a810988f23a
Author: Jürg Billeter <j bitron ch>
Date: Tue Oct 12 15:34:38 2010 +0200
libtracker-sparql: Use lazy resolving for symbols in plugins
This reduces initialization time for direct access.
src/libtracker-sparql/tracker-backend.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-backend.vala b/src/libtracker-sparql/tracker-backend.vala
index dd07bb6..64c30df 100644
--- a/src/libtracker-sparql/tracker-backend.vala
+++ b/src/libtracker-sparql/tracker-backend.vala
@@ -268,7 +268,8 @@ class Tracker.Sparql.Backend : Connection {
expected_mime);
}
- Module module = Module.open (path, ModuleFlags.BIND_LOCAL);
+ // lazy resolving reduces initialization time
+ Module module = Module.open (path, ModuleFlags.BIND_LOCAL | ModuleFlags.BIND_LAZY);
if (module == null) {
throw new IOError.FAILED ("Failed to load module from path '%s': %s",
path,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]