[gtksourceview/wip/search] search: tune a bit the SCAN_BATCH_SIZE



commit 4d1b99fa617f507f47190a41b44609cf837d02e2
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Jul 2 20:19:34 2013 +0200

    search: tune a bit the SCAN_BATCH_SIZE
    
    50 lines is a bit too low.

 gtksourceview/gtksourcesearch.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcesearch.c b/gtksourceview/gtksourcesearch.c
index 4242e5b..f4f9d98 100644
--- a/gtksourceview/gtksourcesearch.c
+++ b/gtksourceview/gtksourcesearch.c
@@ -110,8 +110,10 @@
 #define DEBUG(x)
 #endif
 
-/* Maximum number of lines to scan in one batch. */
-#define SCAN_BATCH_SIZE 50
+/* Maximum number of lines to scan in one batch.
+ * A lower value means more overhead when scanning the buffer asynchronously.
+ */
+#define SCAN_BATCH_SIZE 100
 
 struct _GtkSourceSearchPrivate
 {


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