[gnome-builder] code-index: reduce chunk size before checking timer



commit 70cec35d44e488ef81a8cbcac5eda6f5aeb5fe51
Author: Christian Hergert <chergert redhat com>
Date:   Mon Feb 26 21:34:05 2018 -0800

    code-index: reduce chunk size before checking timer
    
    What would be really nice is if we could run an itimer which could change
    a volatile after 1msec completes, or something to that nature. But for now,
    let's just start to divide and conquer to find out what value works best
    to keep us interactive.

 src/plugins/code-index/ide-code-index-builder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/code-index/ide-code-index-builder.c b/src/plugins/code-index/ide-code-index-builder.c
index f1314f7a4..d9a0eaaf8 100644
--- a/src/plugins/code-index/ide-code-index-builder.c
+++ b/src/plugins/code-index/ide-code-index-builder.c
@@ -32,7 +32,7 @@ struct _IdeCodeIndexBuilder
   IdeCodeIndexIndex   *index;
 };
 
-#define ADD_ENTRIES_CHUNK_SIZE  10
+#define ADD_ENTRIES_CHUNK_SIZE  5
 #define BUILD_DATA_MAGIC        0x778124
 #define IS_BUILD_DATA(d)        ((d)->magic == BUILD_DATA_MAGIC)
 #define GET_CHANGES_MAGIC       0x912828


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