mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 08:38:42 +00:00
Use a more reasonable pool chunk size: 4080 bytes seem to be a good
approximation of a integral fraction of page size even if both malloc overhead and chunk header space is counted.
This commit is contained in:
parent
c10421d3d4
commit
d4ff748224
@ -25,7 +25,7 @@ struct config *
|
|||||||
config_alloc(byte *name)
|
config_alloc(byte *name)
|
||||||
{
|
{
|
||||||
pool *p = rp_new(&root_pool, "Config");
|
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));
|
struct config *c = lp_allocz(l, sizeof(struct config));
|
||||||
|
|
||||||
c->pool = p;
|
c->pool = p;
|
||||||
|
Loading…
Reference in New Issue
Block a user