Wednesday, March 2, 2011

Re: [android-developers] ADT 10.0.0 Issues

On Sun, Feb 27, 2011 at 4:54 AM, Markus Junginger <markus@greenrobot.de> wrote:
> And speaking of ADT: are there any known plans to improve performance?
> We have several larger project and every time we update a single file,
> ADT seems to build the entire APK from scratch. This takes up to
> almost a minute, which decreases productivity. The builder could be
> more intelligent and just update the deltas.

The builders do try to be as incremental as possible, however they
rely on external tools that don't support incremental builds.

- If you only change a java file, the resources are not
compiled/packaged saving time.
- However if you change a resource we have to recompile* / package
them which is quite slow on large project and which creates a new
R.java class which triggers a new java compilation.
- Java compilation trigger a full dex'ing of the app. This takes a
while on large project.

* it would be nice to at least detect that R.java does not need to be
regenerated if resource values are changed instead of added or
removed.
We are also looking at incremental dex'ing.

We have nothing more to announce at this time, but we are aware of
performance issue and we'll be working on it.

Also, the Ant build system is equally slow (even more so actually) as
it doesn't handle dependencies at all and always compile
aidl/renderscript/resources, etc...

Xav
--
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 "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment