On 8/5/2012 12:59 AM, Brad Roberts wrote:
To help with performance comparisons I ripped dmd's lexer out and got it 
building as a few .d files.  It's very crude.
It's got tons of casts (more than the original c++ version).  I attempted no 
cleanup or any other change than the
minimum I could to get it to build and run.  Obviously there's tons of room for 
cleanup, but that's not the point...
it's just useful as a baseline.

The branch:
     https://github.com/braddr/phobos/tree/dmd_lexer

The commit with the changes:
     
https://github.com/braddr/phobos/commit/040540ef3baa38997b15a56be3e9cd9c4bfa51ab

On my desktop (far from idle, it's running 2 of the auto testers), it 
consistently takes 0.187s to lex all of the .d
files in phobos.

Later,
Brad

Thanks, Brad!

Reply via email to