Slower than Python

Zach the Mystic reachBUTMINUSTHISzach at gOOGLYmail.com
Mon Mar 4 11:57:08 PST 2013


On Saturday, 2 March 2013 at 17:21:17 UTC, Andrei Alexandrescu
wrote:
> On 3/2/13 12:20 PM, Andrei Alexandrescu wrote:
>> On 3/1/13 6:26 PM, Steven Schveighoffer wrote:
>>> On Fri, 01 Mar 2013 18:22:54 -0500, Steven Schveighoffer
>>> <schveiguy at yahoo.com> wrote:
>>>
>>>> So it's just pure heuristics. Not hard to see how that would 
>>>> affect a
>>>> 10 million cycle program.
>>>>
>>>> We may be able to create a string-specific version of 
>>>> splitter that
>>>> would take advantage of the representation.
>>>
>>> Just found a disturbing artifact: splitter(message, '\n') is 
>>> more than
>>> twice as slow as splitter(message, "\n")
>>>
>>> -Steve
>>
>> That is a problem. Could you please file a but report?
>
> s/but/bug/
>
> :o)

Ohhhhh!
>
> Andrei


More information about the Digitalmars-d mailing list