git » nmdb » commit 76b8301

Reduce an allocation size in db.c.

author Alberto Bertogli
2007-04-29 07:54:40 UTC
committer Alberto Bertogli
2007-04-29 07:54:40 UTC
parent e458272a156cd22b19456faf65a1fb82d496bbff

Reduce an allocation size in db.c.

There's no point of making vsize = 128k if the maximum size is 64k.

nmdb/db.c +1 -1

diff --git a/nmdb/db.c b/nmdb/db.c
index 5ebdfac..f289df0 100644
--- a/nmdb/db.c
+++ b/nmdb/db.c
@@ -110,7 +110,7 @@ static void process_op(db_t *db, struct queue_entry *e)
 
 	} else if (e->operation == REQ_GET) {
 		unsigned char *val;
-		size_t vsize = 128 * 1024;
+		size_t vsize = 64 * 1024;
 
 		val = malloc(vsize);
 		if (val == NULL) {