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:
Daniel Eklöf 2024-09-07 09:06:16 +02:00
parent c41f55c3a0
commit deba63fcff
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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 {
/*