[tracker] tracker-store: Use more reasonable chunk size for event subjects



commit 84009cbedc991815a73f410d3339c830ac3e19d9
Author: Jürg Billeter <j bitron ch>
Date:   Tue Jun 29 16:36:44 2010 +0200

    tracker-store: Use more reasonable chunk size for event subjects

 src/tracker-store/tracker-resource-class.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-store/tracker-resource-class.c b/src/tracker-store/tracker-resource-class.c
index 607992b..7561bb8 100644
--- a/src/tracker-store/tracker-resource-class.c
+++ b/src/tracker-store/tracker-resource-class.c
@@ -353,8 +353,8 @@ tracker_resource_class_add_event (TrackerResourceClass  *object,
 	priv = TRACKER_RESOURCE_CLASS_GET_PRIVATE (object);
 
 	if (!priv->changed_strings) {
-		/* Default size a bit longer than this sample uri */
-		priv->changed_strings = g_string_chunk_new (strlen (uri) + 10);
+		/* allocate in chunks of 4K */
+		priv->changed_strings = g_string_chunk_new (4096);
 	}
 
 	switch (type) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]