Lexer and parser generators using CTFE

Nick Sabalausky a at a.a
Wed Feb 29 11:18:14 PST 2012

"d coder" <dlang.coder at gmail.com> wrote in message 
news:mailman.241.1330541814.24984.digitalmars-d at puremagic.com...
> >
>> This sounds like something I ran into in my D lexer project. Lexing
>> Phobos took upwards of 10-15 seconds, which is extremely slow
>> considering that dmd can *compile* it in just a few seconds. So I did
>> some profiling, and found out that most of the time was spent formatting
>> tokens into strings and running writeln. After I commented that out, the
>> running time dropped to just a few seconds. :-)
> And how different was just a few seconds from 10-15 seconds? :-)

~10 seconds


More information about the Digitalmars-d mailing list