Optimize ebuild.sh to cache preprocessing output.
authorDavid James <davidjames@google.com>
Thu, 24 Mar 2011 05:05:15 +0000 (22:05 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 26 Mar 2011 19:20:52 +0000 (12:20 -0700)
commitfa3a5a04bc8eeb9e0eda44b21c7c8f3f49e00fa5
tree618d63f1cf421dcd79f44ece2954a3af4f673e97
parent937f4f958f77b54a4c46b94e89af3f1720450e6b
Optimize ebuild.sh to cache preprocessing output.

Right now ebuild.sh runs preprocessing steps multiple times during the
same build. It processes the same environment and produces the same
output every time. This slows down the build unnecessarily.

This optimization cuts build time for 50 binary packages with 16 jobs
from 3m22 to 2m33 (33%).

Change-Id: I72ac84cce2eb60d17736cc5f5343d4a858ec86f4

Review URL: http://codereview.chromium.org/6733008
bin/ebuild.sh