3 ms·
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 Andro
by cmm 7y ago
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.
- evmar 7y agoAndroid'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/discussion https://groups.google.com/d/topic/ninja-build/htlu9akobq0/di... [disclaimer: I am the author of Ninja]