Because you have to run proguard, splitting your apps in modules won't help. We still have to run proguard on all your code (including module) to shrink/obfuscate into a single jar and send this to dex.
If you obfuscate in debug you could try turning this off (you can have separate proguard config for any build types), this could speed up the progard step a bit (maybe). We have some plans to try to improve things there but nothing to announce at this time. On Wed, Apr 9, 2014 at 12:35 AM, Anders Aagaard <[email protected]> wrote: > Hi > > We've got an app that takes roughly 26 seconds to build, this isn't > terribly much, but I'd still like to improve it. And to understand how the > build process works and what takes time. > > Profiling it we see the following takes most time: > :FINN-app:dexDebug 10.835s > :FINN-app:proguardDebug 9.289s > :FINN-app:compileDebugJava 3.497s > :FINN-app:packageDebug 1.130s > > dexDebug - is that dexing the app itself, or merging (incrementally?) dex > files from other libraries? Would we get more performance if we for example > split our app into multiple modules, or would it be exactly the same? > proguardDebug - We have too many methods, so we have to run proguard on > debug builds as well, is there anything we can do to improve performance > here? For example running proguard selectivly on some classes? > > Best regards > Anders > > -- > You received this message because you are subscribed to the Google Groups > "adt-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Xavier Ducrohet Android SDK Tech Lead Google Inc. http://developer.android.com | http://tools.android.com Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
