Major performance problem with std.array.front()

Vladimir Panteleev vladimir at thecybershadow.net
Sun Mar 9 10:21:55 PDT 2014


On Sunday, 9 March 2014 at 17:18:47 UTC, Andrei Alexandrescu 
wrote:
> On 3/9/14, 5:28 AM, Joseph Rushton Wakeling wrote:
>> So IIUC iterating over s.byChar would not encounter the 
>> decoding-related
>> speed hits that Walter is concerned about?
>
> That is correct.

Unless I'm missing something, all algorithms that can work faster 
on arrays will need to be adapted to also recognize 
byChar-wrapped arrays, unwrap them, perform the fast array 
operation, and wrap them back in a byChar.


More information about the Digitalmars-d mailing list