diff options
author | David Robillard <d@drobilla.net> | 2008-05-03 23:14:26 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-05-03 23:14:26 +0000 |
commit | a2706dd069fde845e8a6f2d46112db7c1727a0db (patch) | |
tree | 750c92379e6acc00e13836d0bb0223c600c5878e /src/plugin.c | |
parent | 9dd89e3a4b9d9f0bfb408c827358f8e97c12373b (diff) | |
download | lilv-a2706dd069fde845e8a6f2d46112db7c1727a0db.tar.gz lilv-a2706dd069fde845e8a6f2d46112db7c1727a0db.tar.bz2 lilv-a2706dd069fde845e8a6f2d46112db7c1727a0db.zip |
Use new redland "trees" store, if available (100 fold performance increases in some cases).
git-svn-id: http://svn.drobilla.net/lad/slv2@1195 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c index a945e8a..6e3d94e 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -111,7 +111,9 @@ slv2_plugin_load(SLV2Plugin p) assert(!p->rdf); //p->storage = librdf_new_storage(p->world->world, "hashes", NULL, // "hash-type='memory'"); - p->storage = librdf_new_storage(p->world->world, "memory", NULL, NULL); + p->storage = librdf_new_storage(p->world->world, "trees", NULL, NULL); + if (!p->storage) + p->storage = librdf_new_storage(p->world->world, "memory", NULL, NULL); p->rdf = librdf_new_model(p->world->world, p->storage, NULL); } |