Major performance problem with std.array.front()

Eyrk eyrk at hotmail.com
Sat Mar 8 01:20:37 PST 2014


On Saturday, 8 March 2014 at 02:04:12 UTC, bearophile wrote:
> Vladimir Panteleev:
>
>> It's not about types, it's about algorithms.
>
> Given sufficiently refined types, it can be about types :-)
>
> Bye,
> bearophile

I think Bear is onto something, we already solved an analogous 
problem in an elegant way.

see SortedRange with assumeSorted etc.

But for this to be convenient to use, I still think we should 
expand the current 'String Literal Postfix' types to include both 
normaliztion and graphemes.

Postfix	Type	Aka
c	immutable(char)[]	string
w	immutable(wchar)[]	wstring
d	immutable(dchar)[]	dstring


More information about the Digitalmars-d mailing list