News for hackers. Stuff that matters.
Re:Recursive Make Considered Harmful (1997) [pdf] by cmm on Sunday May 26, 2019 @12:06PM (#20015613)
it's not the parsing per se that takes time on modern computers, it's opening and reading in all the scattered included makefiles. also what specifically Android build system is doing behind the scenes is, it runs a python script, which in turn runs find (or maybe several, I don't remember), to gather all the makefiles to include.

but parsing, once all the text is in memory? peanuts.

Re:Recursive Make Considered Harmful (1997) [pdf] by evmar on Sunday May 26, 2019 @03:50PM (#20017035)
Android's build system now generates Ninja files, which are semantically very close to non-recursive Makefiles, so it's a real-world example you can examine and measure.

Android's build files currently add up to 1.5gb of text(!!!), which even with a fast parser take some time to load (~10-20s).

It's discussed further in this thread (in which among other things I suggest that maybe something is going wrong when you have 1.5gb of text):

https://groups.google.com/d/topic/ninja-build/htlu9akobq0/di...

[disclaimer: I am the author of Ninja]