mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
term: reduce the size of the row struct, by packing it
This reduces run-time memory usage, especially with large scrollbacks. TODO: need to test for performance regressions.
This commit is contained in:
parent
c41f55c3a0
commit
deba63fcff
1 changed files with 7 additions and 6 deletions
13
terminal.h
13
terminal.h
|
|
@ -158,15 +158,16 @@ struct row {
|
|||
struct cell *cells;
|
||||
struct row_data *extra;
|
||||
|
||||
struct {
|
||||
int cmd_start; /* Column, -1 if unset */
|
||||
int cmd_end; /* Column, -1 if unset */
|
||||
bool prompt_marker;
|
||||
} __attribute__((packed)) shell_integration;
|
||||
|
||||
bool dirty;
|
||||
bool linebreak;
|
||||
|
||||
struct {
|
||||
bool prompt_marker;
|
||||
int cmd_start; /* Column, -1 if unset */
|
||||
int cmd_end; /* Column, -1 if unset */
|
||||
} shell_integration;
|
||||
};
|
||||
} __attribute__((packed));
|
||||
|
||||
struct sixel {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue