Major performance problem with std.array.front()
bearophile
bearophileHUGS at lycos.com
Sun Mar 9 09:28:45 PDT 2014
Vladimir Panteleev:
> What do you use this for?
For lots of different reasons (counting, testing, histograms, to
unique-ify, to allow binary searches, etc), you can find
alternative solutions for every one of those use cases.
> I can think of sort being useful e.g. to see which characters
> appear in a string (and with which frequency), but as the
> concept does not apply to all languages, one would need to draw
> a line somewhere for which languages they want to support. I
> think this should be done explicitly in user code.
So far I have needed to sort 7-bit ASCII chars.
Bye,
bearophile
More information about the Digitalmars-d
mailing list