Am 02.12.2011, 06:17 Uhr, schrieb David Eagen <spam_me_h...@mailinator.com>:

I did a test run with 430 MB of the two sample lines you gave in the last post and got even worse results where Java is 6.8x faster than D.

Code: Your original program
DMD : 2.054 64-bit
Java: IcedTea JDK (6)

A profile run without inlining using OProfile revealed statistics that come down to this (roughly):

1/10 reading the file by line
1/ 3 of the time is spend appending to arrays
1/ 2 is the regex

Reply via email to