changeset 106:9a31028e8095

[/trunk] Changeset 120 by mikael * Increase HBB_BLOCKSIZE
author mikael
date Fri, 22 Apr 2005 21:40:21 +0000
parents 91d3ec21c24e
children 57daf8da91d1
files mcabber/src/hbuf.h
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/hbuf.h	Fri Apr 22 21:35:51 2005 +0000
+++ b/mcabber/src/hbuf.h	Fri Apr 22 21:40:21 2005 +0000
@@ -3,7 +3,9 @@
 
 #include <glib.h>
 
-#define HBB_BLOCKSIZE   1024    // > 20 please
+// With current implementation a message must fit in a hbuf block,
+// so we shouldn't choose a too small size.
+#define HBB_BLOCKSIZE   2048    // > 20 please
 
 // Flags:
 // - ALLOC: the ptr data has been allocated, it can be freed