UTF8 + SIMD = win

Jakob Ovrum jakobovrum at gmail.com
Tue Jul 31 12:29:12 PDT 2012


On Tuesday, 31 July 2012 at 19:28:03 UTC, Walter Bright wrote:
> On 7/31/2012 5:24 AM, Jakob Ovrum wrote:
>> On Tuesday, 31 July 2012 at 12:11:25 UTC, bearophile wrote:
>>> Bernard Helyer:
>>>
>>>> Where is UTF-32 actually used?
>>>
>>> I think all std.algorithm and std.range yield UTF-32 dchars, 
>>> when you give
>>> them a string in input.
>>>
>>> Bye,
>>> bearophile
>>
>> In addition, foreach over a string with a dchar loop variable 
>> does implicit
>> UTF-8 decoding.
>>
>
> SIMD isn't going to speed things up at all for decoding one 
> character. It is for transcoding a large array.

Duh, good point, I totally forgot the context.


More information about the Digitalmars-d mailing list