]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Use a more reasonable pool chunk size: 4080 bytes seem to be a good
authorMartin Mares <mj@ucw.cz>
Mon, 5 Apr 1999 20:06:02 +0000 (20:06 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 5 Apr 1999 20:06:02 +0000 (20:06 +0000)
approximation of a integral fraction of page size even if both malloc
overhead and chunk header space is counted.

conf/conf.c

index 332caec7a604fa5662aace7930bb089e654b3b74..61fe9f8846415e9fd4b31291793530a7799e99ba 100644 (file)
@@ -25,7 +25,7 @@ struct config *
 config_alloc(byte *name)
 {
   pool *p = rp_new(&root_pool, "Config");
-  linpool *l = lp_new(p, 1024);
+  linpool *l = lp_new(p, 4080);
   struct config *c = lp_allocz(l, sizeof(struct config));
 
   c->pool = p;