Speeding up importing Phobos files
Adam D. Ruppe
destructionator at gmail.com
Fri Jun 7 15:53:01 UTC 2019
On Friday, 7 June 2019 at 15:46:03 UTC, Gregor Mückl wrote:
> How would compilation even work with multiple modules per file?
> Wouldn't the compiler have to parse all .d files in the whole
> search path then? That would be the opposite of faster compile
> times.
It doesn't have to search because you pass the modules to the
compiler, just like we do now in the general case.
The search path and filename conventions are - today - just
conventions, there's no requirement that the filename and module
name match, which means you don't actually know what module a
file is until it is parsed.
(which is quick and simple btw)
More information about the Digitalmars-d
mailing list