[tracker] Disabled duplicate check for SubjectsChanged, slows down too much
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Disabled duplicate check for SubjectsChanged, slows down too much
- Date: Mon, 10 Aug 2009 10:10:36 +0000 (UTC)
commit b558854183861c6e26c4408f0e221e4456b2ab38
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Aug 10 12:09:55 2009 +0200
Disabled duplicate check for SubjectsChanged, slows down too much
src/tracker-store/tracker-resource-class.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-store/tracker-resource-class.c b/src/tracker-store/tracker-resource-class.c
index 05e3184..63d2c9c 100644
--- a/src/tracker-store/tracker-resource-class.c
+++ b/src/tracker-store/tracker-resource-class.c
@@ -266,6 +266,7 @@ has_already (GPtrArray *array, const gchar *uri)
return FALSE;
}
+/*
static gboolean
changed_has_already (GPtrArray *array, const gchar *uri, const gchar *predicate)
{
@@ -284,6 +285,7 @@ changed_has_already (GPtrArray *array, const gchar *uri, const gchar *predicate)
return FALSE;
}
+*/
void
tracker_resource_class_add_event (TrackerResourceClass *object,
@@ -308,8 +310,9 @@ tracker_resource_class_add_event (TrackerResourceClass *object,
g_ptr_array_add (priv->adds, g_string_chunk_insert_const (priv->changed_strings, uri));
}
break;
- case TRACKER_DBUS_EVENTS_TYPE_UPDATE:
- if (!changed_has_already (priv->ups, uri, predicate)) {
+ case TRACKER_DBUS_EVENTS_TYPE_UPDATE: {
+ /* Duplicate checking slows down too much
+ if (!changed_has_already (priv->ups, uri, predicate)) { */
ChangedItem *item;
item = g_slice_new (ChangedItem);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]