[vte] [ring] Set minimum row size for allocation to 80



commit 99f63f1da37c343064175572b5b53b5193bbcb3f
Author: Behdad Esfahbod <behdad behdad org>
Date:   Sat Sep 5 22:24:26 2009 -0400

    [ring] Set minimum row size for allocation to 80

 src/ring.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ring.c b/src/ring.c
index 37343e2..8b28abb 100644
--- a/src/ring.c
+++ b/src/ring.c
@@ -141,7 +141,7 @@ static VteCells *
 _vte_cells_alloc (unsigned int len)
 {
 	VteCells *ret;
-	unsigned int rank = g_bit_storage (MAX (len, 16) - 1);
+	unsigned int rank = g_bit_storage (MAX (len, 80) - 1);
 
 	if (G_LIKELY (free_cells[rank])) {
 		_vte_debug_print(VTE_DEBUG_RING, "Allocating array of %d cells (rank %d) from cache\n", len, rank);



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