1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-09 21:30:42 +00:00

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

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
{