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 /dragonflybsd | |
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 'dragonflybsd')
-rw-r--r-- | dragonflybsd/DragonFlyBSDProcess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dragonflybsd/DragonFlyBSDProcess.c b/dragonflybsd/DragonFlyBSDProcess.c index 9311f03c..4ea66870 100644 --- a/dragonflybsd/DragonFlyBSDProcess.c +++ b/dragonflybsd/DragonFlyBSDProcess.c @@ -105,7 +105,7 @@ void DragonFlyBSDProcess_writeField(const Process* this, RichString* str, Proces Process_writeField(this, str, field); return; } - RichString_append(str, attr, buffer); + RichString_appendWide(str, attr, buffer); } long DragonFlyBSDProcess_compare(const void* v1, const void* v2) { |