D compilation is too slow and I am forking the compiler

Walter Bright newshound2 at digitalmars.com
Fri Nov 23 19:21:03 UTC 2018


On 11/23/2018 5:23 AM, welkam wrote:
> Currently D reads the all files 
> that are passed in command line before starting lexing/parsing, but in principle 
> we could start lexing/parsing after first file is read. In fact we could start 
> after first file`s first line is read.

DMD used to do that. But it was removed because:

1. nobody understood the logic

2. it didn't seem to make a difference

You can still see the vestiges by the:

     static if (ASYNCREAD)

blocks in the code.


More information about the Digitalmars-d-announce mailing list