mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-02 01:40:13 -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 cell *cells;
|
||||||
struct row_data *extra;
|
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 dirty;
|
||||||
bool linebreak;
|
bool linebreak;
|
||||||
|
|
||||||
struct {
|
} __attribute__((packed));
|
||||||
bool prompt_marker;
|
|
||||||
int cmd_start; /* Column, -1 if unset */
|
|
||||||
int cmd_end; /* Column, -1 if unset */
|
|
||||||
} shell_integration;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct sixel {
|
struct sixel {
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue