On Thursday, 25 September 2014 at 21:49:43 UTC, H. S. Teoh via Digitalmars-d wrote:
It's not just about performance.

Something I recently realized: because of auto-decoding, std.algorithm.find("foo", 'o') cannot be implemented using memchr. I think this points to a huge design fail, performance-wise.

There are also subtle correctness problems: haystack[0..haystack.countUntil(needle)] is wrong, even if it works right on ASCII input.

For once I agree with Walter Bright - regarding the chair throwing :)

Reply via email to