diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-04 14:44:57 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2020-12-08 20:58:40 +0100 |
commit | 157086e750187f6bceeea697d10bf58403c7d5de (patch) | |
tree | 82c6512c1a1e88c9ab9f77ca9bf1531da265e331 /ProcessList.c | |
parent | 5506925b346b09f8556ce2c8f83fe3d69dc1c03c (diff) |
Split RichString_(append|appendn|write) into wide and ascii
RichString_writeFrom takes a top spot during performance analysis due to the
calls to mbstowcs() and iswprint().
Most of the time we know in advance that we are only going to print regular
ASCII characters.
Diffstat (limited to 'ProcessList.c')
-rw-r--r-- | ProcessList.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ProcessList.c b/ProcessList.c index 2d273398..dc8f62cb 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -92,9 +92,9 @@ void ProcessList_printHeader(ProcessList* this, RichString* header) { int color = (this->settings->sortKey == fields[i]) ? CRT_colors[PANEL_SELECTION_FOCUS] : CRT_colors[PANEL_HEADER_FOCUS]; - RichString_append(header, color, field); + RichString_appendWide(header, color, field); if (COMM == fields[i] && this->settings->showMergedCommand) { - RichString_append(header, color, "(merged)"); + RichString_appendAscii(header, color, "(merged)"); } } } |