A few notes on choosing between Go and D for a quick project

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sat Mar 21 08:09:32 PDT 2015


On 3/20/15 9:43 PM, Sebastiaan Koppe wrote:
> On Saturday, 21 March 2015 at 01:31:21 UTC, Andrei Alexandrescu wrote:
>> On 3/20/15 5:56 PM, Walter Bright wrote:
>>> On 3/20/2015 5:23 PM, Andrei Alexandrescu wrote:
>>>> Yah, and uses reference counting for management. -- Andrei
>>>
>>> Ref counting won't improve splitLines, because it must keep them all.
>>
>> Yah, all solution based on "let's keep all lines so we count them at
>> the end" are suboptimal. -- Andrei
>
> What about `.count("\n")` ?

Using "count" is among the solutions I measured: 
http://stackoverflow.com/questions/28922323/improving-line-wise-i-o-operations-in-d/29153508#29153508 
-- Andrei


More information about the Digitalmars-d mailing list