Skip to content

Commit

Permalink
Reduce buffer size
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
H3rnand3zzz committed Oct 29, 2023
1 parent 0664491 commit ea39657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
#include "ui/window.h"
#include "ui/buffer.h"

#define BUFF_SIZE 1200
#define BUFF_SIZE 200

struct prof_buff_t
{
Expand Down

0 comments on commit ea39657

Please sign in to comment.