On 3/9/14, 5:28 AM, Joseph Rushton Wakeling wrote:So IIUC iterating over s.byChar would not encounter the decoding-relatedspeed 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.