Slower than Python

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Mar 2 09:14:07 PST 2013


On 3/2/13 11:12 AM, Jacob Carlborg wrote:
> On 2013-03-01 23:31, Steven Schveighoffer wrote:
>
>> Phobos kind of refuses to treat strings like arrays of characters, it
>> insists on decoding.
>>
>> With DMD and a hand-written splitter, it takes 6 seconds instead of 10
>> on my system (64-bit macosx).
>
> If you need to write a custom splitter to get acceptable performance
> then it sounds to me that D or Phobos have failed.

I wrote a custom splitter specialized for arrays. It's as fast.

Andrei


More information about the Digitalmars-d mailing list