diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-07 10:14:07 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-07 10:14:07 +0000 |
| commit | cb60ddd0905f5fb92007037e3b10f8336da0e769 (patch) | |
| tree | 95890c93bf1ccbb9880c7d0143aa03237ac7f4b9 | |
| parent | ime: enter(): remove assertion on surface kind being TERM_SURF_GRID (diff) | |
vt: remove xassert(), that cannot be optimized out, from action_print()
action_print() is in the hot path, and having if-statement here *does*
have an impact on performance.
Much more so when that if-statement involves a functional call to
wcwidth().
Closes #330
| -rw-r--r-- | vt.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -238,8 +238,6 @@ action_print(struct terminal *term, uint8_t c) L'│', L'≤', L'≥', L'π', L'≠', L'£', L'·', /* x - ~ */ }; - xassert(wcwidth(c) == 1); - if (unlikely(term->charsets.set[term->charsets.selected] == CHARSET_GRAPHIC) && c >= 0x60 && c <= 0x7e) { |
