Skip to content

Commit

Permalink
defrag: prealloc more frags.
Browse files Browse the repository at this point in the history
  • Loading branch information
regit committed Aug 22, 2012
1 parent 6475f99 commit 09d8931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/defrag.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ DefragContextNew(void)
if (!ConfGetInt("defrag.max-frags", &frag_pool_size)) {
frag_pool_size = DEFAULT_DEFRAG_POOL_SIZE;
}
intmax_t frag_pool_prealloc = frag_pool_size / 4;
intmax_t frag_pool_prealloc = frag_pool_size / 2;
dc->frag_pool = PoolInit(frag_pool_size, frag_pool_prealloc,
DefragFragNew, dc, DefragFragFree);
if (dc->frag_pool == NULL) {
Expand Down

0 comments on commit 09d8931

Please sign in to comment.