Using ccache to build Android

1,858 views
Skip to first unread message

koba

unread,
May 6, 2011, 5:51:57 AM5/6/11
to Android Building
Ccache is easy and nice to build Android.
I tried this and build time is reduced from 14min. to 8min.45sec.

I wrote a blog entry about this topic.
http://kobablog.wordpress.com/2011/05/06/using-ccache-to-build-android/

Jean-Baptiste Queru

unread,
May 6, 2011, 10:38:55 AM5/6/11
to android-...@googlegroups.com
Also, be sure to use a large cache. The default size is too small (1GB
IIRC) to fit the data from a single build. I use 100GB.

The biggest benefits of ccache come with lots of RAM (so that the
relevant ccache data remains in the disk cache from one build to the
other). On my machine, I saw some measurable differences when
upgrading to 24GB of RAM from 12GB.

JBQ

> --
> You received this message because you are subscribed to the "Android Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

koba

unread,
May 10, 2011, 12:36:19 PM5/10/11
to Android Building
Thank you, JBQ.
I will buy memory at Akihabara on next visit to Tokyo.

I investigated ccache configuration and write another entry on my
blog.
http://tetsu-koba.blogspot.com/2011/05/using-ccache-to-build-android2.html

(I moved my blog. This is previous entry.)
http://tetsu-koba.blogspot.com/2011/05/using-ccache-to-build-android.html



koba

unread,
May 12, 2011, 9:54:33 AM5/12/11
to Android Building
I am sorry, correct URL is here.

http://t2koba.blogspot.com/2011/05/using-ccache-to-build-android.html
http://t2koba.blogspot.com/2011/05/using-ccache-to-build-android2.html

On May 11, 1:36 am, koba <tetsu.k...@gmail.com> wrote:
> Thank you, JBQ.
> I will buy memory at Akihabara on next visit to Tokyo.
>
> I investigated ccache configuration and write another entry on my
> blog.http://tetsu-koba.blogspot.com/2011/05/using-ccache-to-build-android2...
>
> (I moved my blog. This is previous entry.)http://tetsu-koba.blogspot.com/2011/05/using-ccache-to-build-android....
Reply all
Reply to author
Forward
0 new messages