NDK v26 compiling C++ MUCH slower than v25 #1967
Unanswered
AndrewAtAvenza
asked this question in
Q&A
Replies: 1 comment 6 replies
-
I added timing to my build logs and then compiled a table comparing builds with NDK 25.0.8775105 vs NDK 26.1.10909125: That's a 10x slower build throughput 😢 As a test, I swapped the LLVM folders from the NDKs and when I do that, v26 builds (with Clang 14.0.6) just as fast as v25. So it seems to be a clang issue. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just upgraded to v26 and I'm noticing that it's compiling C++ enormously slower. I'm guessing its because I need to change some flag or option somewhere, but I'm at a loss about where to start.
When I build in AS, I can see that it seems to be building about ~4 files in parallel, but it's only tapping 30-40% of my CPU. v25 basically redlined my CPU with a dozen jobs. So that might be the whole thing right there. When I build dependencies on the command line, it looks like it's only using a single file at a time, which is insanely slow.
Any idea what changed and what I can do to fix it? I can't merge this stuff into my main branch when it's literally compiling our app orders of magnitude slower!
Any help appreciated!
Beta Was this translation helpful? Give feedback.
All reactions