Element type of string ranges
Revision as of 03:07, 9 March 2014 by Vladimir Panteleev (talk | contribs) (→Comparison: Add correctness)
This article attempts to summarize the arguments in the thread Major performance problem with std.array.front().
Comparison
One of the proposals in the thread is to switch the iteration type of string ranges from dchar to the string's character type.
Argument | Old | New |
---|---|---|
Searching for a particular dchar in a string. | ![]() |
![]() |
Searching for a particular dchar in a non-normalized string. | ![]() | |
Case conversion, insensitive comparison in ranges for certain languages | ![]() |
![]() |
Case conversion, insensitive comparison in ranges for other languages | ![]() | |
Correctness | ![]() |
![]() |
Performance | ![]() |
![]() |
Implementation difficulty | ![]() phobos/std $ grep ElementEncodingType *.d | wc -l 80 |
![]() |
Consistency | ![]() |
![]() |