C++ Logo

sg16

Advanced search

Re: [SG16-Unicode] Performance of C interfaces (was: Re: SG16 meeting summary for August 21st, 2019)

From: Philipp Klaus Krause <krauseph_at_[hidden]>
Date: Mon, 2 Sep 2019 07:10:06 +0200
Am 02.09.19 um 01:00 schrieb JeanHeyd Meneide:
> On Sun, Sep 1, 2019 at 12:07 PM Steve Downey <sdowney_at_[hidden]> wrote:
>>
>> That was, if I recall correctly, about the C standard library interfaces in the Null-terminated multibyte strings section. Basically that the character at a time interfaces are not amenable to vectorization.
>>
>
> Yes. The C interfaces for UTFx-to-multi-byte (mbrtoc16, etc.) […]

In my experience, one reason those are slow is that they are restartable.
See e.g. the justification for N2282:
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2282.htm

Philipp

Received on 2019-09-02 07:47:00