Major performance problem with std.array.front()

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Mar 7 17:15:33 PST 2014


On Sat, Mar 08, 2014 at 12:46:21AM +0000, Peter Alexander wrote:
> On Saturday, 8 March 2014 at 00:22:05 UTC, Walter Bright wrote:
> >Andrei suggests that this change would destroy D by breaking too
> >much existing code. He might be right. Can we afford the risk that
> >he is right?
> >
> >We should think about a way to have our cake and eat it, too.
> >
> >Keep in mind that this issue is a Phobos one, not a core language
> >issue.
> 
> Before we discuss risk in the change, we need to agree that it is
> even a desirable change. I don't think we have reached that point.
> 
> It's worth pointing out that all the performance issues can be
> resolved in Phobos through specialisation with no disruption to the
> users.

Regardless of which way we decide in the end, I hope the one thing good
that will come out of this thread is to improve the performance of
string algorithms in Phobos. Things like substring searching to
implement multibyte character (or multi-codepoint "characters")
operations efficiently are quite needed, IMO.


T

-- 
If a person can't communicate, the very least he could do is to shut up.
-- Tom Lehrer, on people who bemoan their communication woes with their
loved ones.


More information about the Digitalmars-d mailing list