From ebded144e74a668973ec9ba6e7e169d4e6dc766c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 25 Jun 2009 14:33:37 -0400 Subject: [PATCH] Increased some initial memory pool sizes. --HG-- branch : HEAD --- src/config/config-parser.c | 2 +- src/lib-settings/settings-parser.c | 5 +++-- src/lib-storage/mailbox-list.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/config/config-parser.c b/src/config/config-parser.c index ff8cf92bb7..2d92227b1a 100644 --- a/src/config/config-parser.c +++ b/src/config/config-parser.c @@ -282,7 +282,7 @@ void config_parse_file(const char *path, bool expand_files) size_t len; memset(&ctx, 0, sizeof(ctx)); - ctx.pool = pool_alloconly_create("config file parser", 10240); + ctx.pool = pool_alloconly_create("config file parser", 1024*64); ctx.path = path; fd = open(path, O_RDONLY); diff --git a/src/lib-settings/settings-parser.c b/src/lib-settings/settings-parser.c index e9a734c992..0c9be5eb63 100644 --- a/src/lib-settings/settings-parser.c +++ b/src/lib-settings/settings-parser.c @@ -114,7 +114,7 @@ settings_parser_init_list(pool_t set_pool, i_assert(count > 0); pool_ref(set_pool); - parser_pool = pool_alloconly_create("settings parser", 8192); + parser_pool = pool_alloconly_create("settings parser", 16384); ctx = p_new(parser_pool, struct setting_parser_context, 1); ctx->set_pool = set_pool; ctx->parser_pool = parser_pool; @@ -1094,7 +1094,8 @@ settings_parser_dup(struct setting_parser_context *old_ctx, pool_t new_pool) pool_ref(new_pool); new_ctx = p_new(new_pool, struct setting_parser_context, 1); new_ctx->set_pool = new_pool; - new_ctx->parser_pool = pool_alloconly_create("settings parser", 2048); + new_ctx->parser_pool = + pool_alloconly_create("dup settings parser", 8192); new_ctx->flags = old_ctx->flags; new_ctx->str_vars_are_expanded = old_ctx->str_vars_are_expanded; new_ctx->linenum = old_ctx->linenum; diff --git a/src/lib-storage/mailbox-list.c b/src/lib-storage/mailbox-list.c index 67561e380a..b1d08317fa 100644 --- a/src/lib-storage/mailbox-list.c +++ b/src/lib-storage/mailbox-list.c @@ -574,7 +574,7 @@ mailbox_list_iter_init_namespaces(struct mail_namespace *namespaces, i_assert(namespaces != NULL); - pool = pool_alloconly_create("mailbox list namespaces", 256); + pool = pool_alloconly_create("mailbox list namespaces", 512); ctx = p_new(pool, struct ns_list_iterate_context, 1); ctx->pool = pool; ctx->ctx.flags = flags; -- 2.47.3