On 3/1/13 8:29 PM, Steven Schveighoffer wrote:
On Fri, 01 Mar 2013 20:05:34 -0500, cvk012c
<cvk0...@motorolasolutions.com> wrote:
In my latest version of D script I didn't use splitter at all. I used
string specific indexOf function. Still result is very bad. For text
based protocols, such as SIP, performance of string manipulating
functions is very important. Unfortunately, looks like it is not D
strongest point at this time.
indexOf uses the same mechanism as splitter to find the separators. If
it doesn't improve anything, I'd say that is where the problem lies
(std.algorithm.find).
find and indexOf on arrays are on par with handwritten loops.
Andrei