Lexer and parser generators using CTFE

d coder dlang.coder at gmail.com
Wed Feb 29 10:49:30 PST 2012


>
>
> 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? :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120301/24a909ee/attachment.html>


More information about the Digitalmars-d mailing list