Speeding up text file parser (BLAST tabular format)

John Colvin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 14 10:24:26 PDT 2015


On Monday, 14 September 2015 at 16:33:23 UTC, Rikki Cattermole 
wrote:
> On 15/09/15 12:30 AM, Fredrik Boulund wrote:
>>[...]
>
> A lot of this hasn't been covered I believe.
>
> http://dpaste.dzfl.pl/f7ab2915c3e1
>
> 1) You don't need to convert char[] to string via to. No. Too 
> much. Cast it.

Not a good idea in general. Much better to ask for a string in 
the first place by using byLine!(immutable(char), 
immutable(char)). Alternatively just use char[] throughout.


More information about the Digitalmars-d-learn mailing list