Recently We found our Android T compile spped become drastically slow.
After some debugging, we found our build.ninja file is 22G, and AOSP build.ninjs is 6G.
and during the generation process of build.ninja, soong_build quickly eat all memory and start to use swap, which makes the process slow.
Apparently it's not Google's problem. But i wish someone could tell me how to debug it and find the root cause (maybe someone write a bad Android.bp)?