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



commit f1bec043d6ebc6bdd1eb3e3e0eb3124b428b4fee
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]