phobos/std/algorithm
Andreas Zwinkau a9d5b8ca77 Improve speed of find for random access needles (strings)
For find a string within a string, std.algorithm.searching.find was
unnecessarily slow. The reason is it created intermediate slices. A
naively written nested-for-loop implementation was a few times
faster.

For random access ranges (which strings are) this uses an index based
algorithm, which does not need to create an intermediate slice. Speed
is now comparable to the nested-for-loop implementation even in rather
pathological cases.

This might help with issue 9646.
2016-06-02 21:44:50 +02:00
..
comparison.d apply all-man braces in Phobos 2016-05-31 13:07:53 +02:00
internal.d fix property enforcement 2015-12-04 15:42:53 +09:00
iteration.d Merge pull request #4383 from JackStouffer/issue16073 2016-06-02 14:30:24 -04:00
mutation.d Merge pull request #4383 from JackStouffer/issue16073 2016-06-02 14:30:24 -04:00
package.d remove the deprecated wiki macros 2016-05-27 05:52:23 +02:00
searching.d Improve speed of find for random access needles (strings) 2016-06-02 21:44:50 +02:00
setops.d Standardize whitespace after imports 2016-05-29 22:09:56 +02:00
sorting.d apply all-man braces in Phobos 2016-05-31 13:07:53 +02:00