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>
Thu, 24 Mar 2011 05:05:15 +0000 (22:05 -0700)
commit20fff13645e50ec68c5a56c064e66e11aad72256
treed27af742cdf6dae15417f04a88f448c2ce0f9cd1
parentc4b26e6ece564edd30d612628ea5f3c29b5df120
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