Java > Scala
    Andrei Alexandrescu 
    SeeWebsiteForEmail at erdani.org
       
    Thu Dec  1 10:44:02 PST 2011
    
    
  
On 12/1/11 9:03 AM, Andrei Alexandrescu wrote:
> On 11/30/11 9:47 PM, David Eagen wrote:
>> Recently I needed to analyze some mail logs. I needed to find the hosts
>> that were sending mail and how many lines in the log existed for each
>> host. Thinking this would be perfect for natively compiled code in D I
>> first wrote a D app. I then wrote it in perl and was amazed at how much
>> faster perl was. I expanded out to Java and Scala. For all four I used
>> the same source files and the same output was created.
> [snip]
>
> This is a good benchmark for I/O and a practical regex. David, could you
> please send (privately if you want) the file or some statistics about it
> (bytes, lines, a representative sample)? Thanks!
>
> Andrei
One more thing before I forget - you may want to use byLine() for input. 
In case the issue turns out to be related to I/O, it's much better we 
improve byLine() instead of the streams library.
Thanks,
Andrei
    
    
More information about the Digitalmars-d
mailing list