How to Debug Native Compile Times #1703
Answered
by
pirama-arumuga-nainar
justinpapezsonos
asked this question in
Q&A
Replies: 1 comment 15 replies
-
tl;dr: Antivirus was slowing things down. See the full thread for details.
A jump from a few minutes to an hour seems surprising. There was no
noticeable slowdown in the Android platform or kernel build times.
Does anything stand out when observing build progress? For e.g., is the
slowdown uniform across all sources or is it just a few files that are
bottlenecked?
…On Wed, Apr 20, 2022 at 2:45 PM Justin Papez ***@***.***> wrote:
How should one go about debugging / diagnosing / resolving exuberant
native compile times? The company that I work for recently migrated from
NDK r21 to NDK r24 and some developers have seen their compile times
increase on average from 4 minutes to 1 hour. These developers have noticed
that the compile time regression occurs when building with NDK r23+ (they
have tested with NDK r21, r22, r23, r24, & r25). The native library being
compiled is roughly 1,200 files. Unfortunately, we are not sure how to
diagnose what the root issue may be. We'd like to use NDK r23+ as it
supports M1 machines, something that is important to our company. Any
suggestions or help as to how we can proceed in order to diagnose the issue
would be greatly appreciated. Thanks in advance!
—
Reply to this email directly, view it on GitHub
<#1703>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEZPQ6ASH6ZXG3Q3IJ7JUP3VGB3IJANCNFSM5T5LEJ5A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
15 replies
Answer selected by
justinpapezsonos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How should one go about debugging / diagnosing / resolving exuberant native compile times? The company that I work for recently migrated from NDK r21 to NDK r24 and some developers have seen their compile times increase on average from 4 minutes to 1 hour. These developers have noticed that the compile time regression occurs when building with NDK r23+ (they have tested with NDK r21, r22, r23, r24, & r25). The native library being compiled is roughly 1,200 files. Unfortunately, we are not sure how to diagnose what the root issue may be. We'd like to use NDK r23+ as it supports M1 machines, something that is important to our company. Any suggestions or help as to how we can proceed in order to diagnose the issue would be greatly appreciated. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions