Also, make supports multi-threaded compilation, but not by default -
you're probably building with one core and idling the other(s).  On
any multi-processor or multi-core system, you can obtain an immediate
speedup by allowing make to use more CPU resources.

Every system is different, so there's no single value, but you can
experiment with different values and find the best tradeoff between
build time and system performance.

For example, on my laptop (core duo 2) I use -j2 when I need to do
other stuff, and -j3 when I just want it to build as fast as possible
(UI gets pretty sluggish here).  Recent desktop machines can do -j4 or
higher.

Note:  Build errors can be more difficult to read in multi-threaded
builds, because logs and error messages are interleaved.  If you are
having trouble diagnosing build errors, you may want to build without
-j to get a clearer picture of what's wrong.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to