more reasonable pool size

This commit is contained in:
2021-12-04 22:18:02 +01:00
parent 68f40df298
commit cb1e5ed442

View File

@@ -84,7 +84,7 @@ static struct list_head *read_boards()
struct board *cur_board = &dummy; struct board *cur_board = &dummy;
int row = 0; int row = 0;
if (!(pool = pool_init("boards", 10, sizeof (struct board)))) if (!(pool = pool_init("boards", 128, sizeof (struct board))))
return NULL; return NULL;
while ((len = getline(&buf, &alloc, stdin)) >= 0) { while ((len = getline(&buf, &alloc, stdin)) >= 0) {