From: Oliver Kurth Date: Fri, 15 Sep 2017 18:23:03 +0000 (-0700) Subject: DynBuf: Start smaller X-Git-Tag: stable-10.2.0~543 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3263360ef1965a230ba800aa3835782845d85c0e;p=thirdparty%2Fopen-vm-tools.git DynBuf: Start smaller DynBuf operations are mostly concerned with strings - and most strings are less than 128 bytes long. Shorten the initial allocation. --- diff --git a/open-vm-tools/lib/misc/dynbuf.c b/open-vm-tools/lib/misc/dynbuf.c index 3ba1a92fe..ed68a3083 100644 --- a/open-vm-tools/lib/misc/dynbuf.c +++ b/open-vm-tools/lib/misc/dynbuf.c @@ -293,10 +293,10 @@ DynBuf_Enlarge(DynBuf *b, // IN/OUT: 1 #else /* - * Initial size: 1 KB. Most buffers are smaller than - * that --hpreg + * Most DynBuf operations are on strings. Most strings + * are less than 128 bytes long. */ - 1 << 10 + 128 #endif ;