mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-28 07:58:00 -04:00
term: try to improve on a performance regression
When support was added for DECOM (absolute/relative row addressing), a small but noticeable (~3.5%) performance regression was introduced. Try to improve the situation by simplifying the relative-to-absolute conversion; only the row needs to be transformed.
This commit is contained in:
parent
cf75528e86
commit
9902a5732f
3 changed files with 17 additions and 29 deletions
|
|
@ -342,7 +342,7 @@ void term_damage_scroll(
|
|||
void term_erase(
|
||||
struct terminal *term, const struct coord *start, const struct coord *end);
|
||||
|
||||
struct coord term_cursor_rel_to_abs(const struct terminal *term, int row, int col);
|
||||
int term_row_rel_to_abs(const struct terminal *term, int row);
|
||||
void term_cursor_home(struct terminal *term);
|
||||
void term_cursor_to(struct terminal *term, int row, int col);
|
||||
void term_cursor_left(struct terminal *term, int count);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue