From c407b0628ed6ffe53620825bde4b7c730a2ec679 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Wed, 19 Jul 2006 16:18:37 +0000
Subject: [PATCH] Increase the buffer size (and increments) for packing. This
 should decrease the number of realloc calls and improve performance.

---
 src/common/pack.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/pack.h b/src/common/pack.h
index d8f5c791735..5c5ecc875a6 100644
--- a/src/common/pack.h
+++ b/src/common/pack.h
@@ -46,7 +46,7 @@
 #include <string.h>
 
 #define BUF_MAGIC 0x42554545
-#define BUF_SIZE 4096
+#define BUF_SIZE (16 * 1024)
 
 struct slurm_buf {
 	uint32_t magic;
-- 
GitLab