]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Increased some initial memory pool sizes.
authorTimo Sirainen <tss@iki.fi>
Thu, 25 Jun 2009 18:33:37 +0000 (14:33 -0400)
committerTimo Sirainen <tss@iki.fi>
Thu, 25 Jun 2009 18:33:37 +0000 (14:33 -0400)
--HG--
branch : HEAD

src/config/config-parser.c
src/lib-settings/settings-parser.c
src/lib-storage/mailbox-list.c

index ff8cf92bb7b3d779d89c056bbab36521ccd04c70..2d92227b1abae82ee86aed785ac0cea84e8b045d 100644 (file)
@@ -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);
index e9a734c992ebba2fa906d11b0b6de5a40fc1a17e..0c9be5eb63717898a40a5e9d917821b16d39aed8 100644 (file)
@@ -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;
index 67561e380a59a90ae8af76079fb89101c04755c3..b1d08317fa6c7cf50abea816ed52794c26e5f71f 100644 (file)
@@ -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;