Skip to content

Commit 33e8028

Browse files
committed
Reduce fragmentation by allocating more entries upfront.
Signed-off-by: Katharine Berry <[email protected]>
1 parent c3cd152 commit 33e8028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/c/converse/conversation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Conversation* conversation_create() {
4646
Conversation *conversation = bmalloc(sizeof(Conversation));
4747
conversation->deleted_entries = 0;
4848
conversation->entry_count = 0;
49-
conversation->entry_allocated = 3;
49+
conversation->entry_allocated = 30;
5050
conversation->entries = bmalloc(sizeof(ConversationEntry) * conversation->entry_allocated);
5151
conversation->thread_id[0] = 0;
5252
return conversation;

0 commit comments

Comments
 (0)