1
0
Fork 0

Reduce buffer size

Currently buffer is being redrawn on each DB fetch,
this causes a big waste of resources as on every page_up button click
we redraw 1200 messages (each message can be longer than 1 line),
commit will reduce buffer size to 200,
thus reducing amount of messages redrawn on each page up,
this is a temporary solution for a bigger problem.
This commit is contained in:
John Hernandez 2023-10-29 13:10:01 +01:00
parent 06644915c3
commit ea39657b0a
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@
#include "ui/window.h"
#include "ui/buffer.h"
#define BUFF_SIZE 1200
#define BUFF_SIZE 200
struct prof_buff_t
{