[tracker/journal] libtracker-data: Small performance improvement for STATEMENT_DELETE
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/journal] libtracker-data: Small performance improvement for STATEMENT_DELETE
- Date: Mon, 15 Mar 2010 10:27:34 +0000 (UTC)
commit 98b7528b058d83dbff387385f8304f5fe21db14b
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Mar 15 11:26:36 2010 +0100
libtracker-data: Small performance improvement for STATEMENT_DELETE
src/libtracker-data/tracker-data-update.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 09bc005..5bd6b3d 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2570,9 +2570,13 @@ tracker_data_replay_journal (GHashTable *classes,
if (property) {
GError *new_error = NULL;
- const gchar *prop_uri = tracker_property_get_uri (property);
+ static TrackerProperty *rdf_type = NULL;
- if (object && g_strcmp0 (prop_uri, RDF_PREFIX "type") == 0) {
+ if (!rdf_type) {
+ rdf_type = tracker_ontologies_get_property_by_uri (RDF_PREFIX "type");
+ }
+
+ if (object && rdf_type == property) {
TrackerClass *class;
class = tracker_ontologies_get_class_by_uri (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]