changeset 9458:adee8cb3ff5d HEAD

Minor memory allocation tweaks.
author Timo Sirainen <tss@iki.fi>
date Wed, 28 Oct 2009 14:10:04 -0400
parents 778a6418f54b
children acfef2f0fec3
files src/lib/failures.c src/lib/str.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/failures.c	Wed Oct 28 13:51:32 2009 -0400
+++ b/src/lib/failures.c	Wed Oct 28 14:10:04 2009 -0400
@@ -417,7 +417,7 @@
 	T_BEGIN {
 		string_t *str;
 
-		str = t_str_new(512);
+		str = t_str_new(128);
 		str_append_c(str, 1);
 		str_append_c(str, log_type);
 		str_vprintfa(str, format, args);
--- a/src/lib/str.c	Wed Oct 28 13:51:32 2009 -0400
+++ b/src/lib/str.c	Wed Oct 28 14:10:04 2009 -0400
@@ -127,7 +127,7 @@
 
 void str_vprintfa(string_t *str, const char *fmt, va_list args)
 {
-#define SNPRINTF_INITIAL_EXTRA_SIZE 256
+#define SNPRINTF_INITIAL_EXTRA_SIZE 128
 	va_list args2;
 	char *tmp;
 	unsigned int init_size;