mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05: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:
parent
06644915c3
commit
ea39657b0a
@ -53,7 +53,7 @@
|
||||
#include "ui/window.h"
|
||||
#include "ui/buffer.h"
|
||||
|
||||
#define BUFF_SIZE 1200
|
||||
#define BUFF_SIZE 200
|
||||
|
||||
struct prof_buff_t
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user