On 3/2/13 2:37 PM, Steven Schveighoffer wrote:
On Sat, 02 Mar 2013 12:14:07 -0500, Andrei Alexandrescu
<seewebsiteforem...@erdani.org> wrote:

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.

Why doesn't it get used for strings in this instance? Maybe there is a
bad constraint somewhere.

I fear there's a misunderstanding somewhere. Splitter and find are already specialized appropriately for strings.

Andrei


Reply via email to