Is phobos too fluffy?

H. S. Teoh hsteoh at quickfur.ath.cx
Thu Sep 17 18:05:34 UTC 2020


On Thu, Sep 17, 2020 at 05:06:12PM +0000, jmh530 via Digitalmars-d wrote:
[...]
> I.e., does having extra empty lines have an impact on the time it
> takes to compile phobos?
> 
> I don't really have a good sense of whether the time spent compiling
> is more related to number of lines or number of characters. An empty
> line with no characters or one character may not take long to parse.

Lexing/parsing is the fastest part of the compilation process.  The
majority of compilation time (by far) is spent on semantic analysis and
codegen.  A couple of empty lines makes a difference so minute I daresay
it's not even measurable.


T

-- 
If it tastes good, it's probably bad for you.


More information about the Digitalmars-d mailing list