[tracker] tracker-miner-fs: Set pool size to 10



commit 7ef0a5ddf6b882614e864ef46d45485babc944ee
Author: Martyn Russell <martyn lanedo com>
Date:   Fri Oct 9 13:33:44 2009 +0100

    tracker-miner-fs: Set pool size to 10
    
    Indexing time is now 73s from 81s for 24k files

 src/libtracker-miner/tracker-miner-fs.c    |    4 ++--
 src/tracker-miner-fs/tracker-miner-files.c |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index ead0e7f..03cc7fa 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -231,7 +231,7 @@ tracker_miner_fs_class_init (TrackerMinerFSClass *klass)
 							    "Processing pool limit",
 							    "Number of files that can be concurrently processed",
 							    1, G_MAXUINT, 1,
-							    G_PARAM_READWRITE));
+							    G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
 	/**
 	 * TrackerMinerFS::check-file:
 	 * @miner_fs: the #TrackerMinerFS
@@ -385,7 +385,6 @@ tracker_miner_fs_init (TrackerMinerFS *object)
 	object->private = TRACKER_MINER_FS_GET_PRIVATE (object);
 
 	priv = object->private;
-	priv->pool_limit = 1;
 
 	/* For each module we create a TrackerCrawler and keep them in
 	 * a hash table to look up.
@@ -530,6 +529,7 @@ fs_set_property (GObject      *object,
 		break;
 	case PROP_POOL_LIMIT:
 		fs->private->pool_limit = g_value_get_uint (value);
+		g_message ("Miner process pool limit is set to %d", fs->private->pool_limit);
 		break;
 	default:
 		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
diff --git a/src/tracker-miner-fs/tracker-miner-files.c b/src/tracker-miner-fs/tracker-miner-files.c
index 751a946..185735c 100644
--- a/src/tracker-miner-fs/tracker-miner-files.c
+++ b/src/tracker-miner-fs/tracker-miner-files.c
@@ -1404,5 +1404,6 @@ tracker_miner_files_new (TrackerConfig *config)
         return g_object_new (TRACKER_TYPE_MINER_FILES,
                              "name", "Files",
                              "config", config,
+			     "process-pool-limit", 10,
                              NULL);
 }



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