How to accelerate this program?

Wang Zhen nehzgnaw at gmail.com
Mon Apr 3 08:17:45 PDT 2006


Wang Zhen wrote:
> 
> 
> Li Jie wrote:
> 
>> At first, thank all my helpers. :)
>>
>>
>> I have some email addresses in a text file, about 780000 lines. There 
>> are some
>> repeated lines, about 8%, and I want to remove them.
>>
>> I write a D version:
<snip>

BTW, a simple shell command "sort emails.txt | uniq > output.txt" can 
get the job done in a few seconds. I assume you went all the trouble 
writing a D version just for the fun of it. No?



More information about the Digitalmars-d mailing list