[tracker] 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] libtracker-sparql: Use lazy resolving for symbols in plugins
- Date: Tue, 12 Oct 2010 15:09:26 +0000 (UTC)
commit f0d87163092247827fd11188751a28cf3dca0ea6
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]