[gnumeric] Deps: increase bucket size to speed large sheets.



commit e66cfbb8c931d47e02bcb55c34284b261501ee43
Author: Morten Welinder <terra gnome org>
Date:   Fri Apr 26 20:17:57 2013 -0400

    Deps: increase bucket size to speed large sheets.

 src/dependent.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/dependent.c b/src/dependent.c
index 5aa49ee..ed9b3b6 100644
--- a/src/dependent.c
+++ b/src/dependent.c
@@ -77,7 +77,7 @@ static GOMemChunk *cset_pool;
 /* ------------------------------------------------------------------------- */
 /* Maps between row numbers and bucket numbers.  */
 
-#define BUCKET_SIZE    128
+#define BUCKET_SIZE    1024
 #define BUCKET_OF_ROW(row) ((row) / BUCKET_SIZE)
 #define BUCKET_START_ROW(b) ((b) * BUCKET_SIZE)
 #define BUCKET_END_ROW(b) ((b) * BUCKET_SIZE + (BUCKET_SIZE - 1))


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