* shrink default buffer size from 4K to 64 bytes. Applications that know they need...
authorWilfried Göesgens <willi@citadel.org>
Thu, 4 Jun 2009 20:42:31 +0000 (20:42 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 4 Jun 2009 20:42:31 +0000 (20:42 +0000)
libcitadel/debian/rules
libcitadel/lib/stringbuf.c

index 10af4c02b02b9423f275b0b7ba8f50afc1f4b352..b7664d47f41fb21fb7433b9f7167172dff8c8cc0 100755 (executable)
@@ -23,6 +23,11 @@ ifneq (,$(findstring profiling,$(DEB_BUILD_OPTIONS)))
        LDFLAGS += -pg
 endif
 
+ifneq (,$(findstring sprofiling,$(DEB_BUILD_OPTIONS)))
+       CFLAGS += -D SIZE_DEBUG
+endif
+
+
 build: build-stamp
 build-stamp:
        dh_testdir
index dc180176e5e60ec298a1c80e09be8b14f7083e6b..4498823d87c27e5c9b286e8d6dc625e0a363ddde 100644 (file)
@@ -25,7 +25,7 @@
 int ZEXPORT compress_gzip(Bytef * dest, size_t * destLen,
                           const Bytef * source, uLong sourceLen, int level);
 #endif
-int BaseStrBufSize = SIZ;
+int BaseStrBufSize = 64;
 
 /**
  * Private Structure for the Stringbuffer