On 05/17/2013 11:41 AM, Jonathan M Davis wrote:
We need to do more to optimize Phobos, but given our stance of correctness by
default, we're kind of stuck with string functions taking a performance hit in
a number of common cases simply due to the necessary decoding of code points.
We can do better at making them fast, and reduce problems like this, but
ultimately, if you want fast ASCII-only operations, you almost certainly need
to operate on something like ubyte[] rather than string, and that requires
educating people. It's one of the costs of trying to be both correct and
performant.

At least I'm now educated on this :")

// Samuel

Reply via email to