diff options
author | Hung-Te Lin <hungte@chromium.org> | 2012-10-31 15:31:43 +0800 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-11-05 16:20:11 -0800 |
commit | 7909cb8293582fafe7dbf4f463ec95a5567a58c8 (patch) | |
tree | 17eda3b419213c3d63f073902dc67ed6bfea16fa /host | |
parent | 68a516a43c5d0c7fbc0994c2c47d5acc92f4907d (diff) | |
download | vboot-7909cb8293582fafe7dbf4f463ec95a5567a58c8.tar.gz |
newbitmaps: Speed up make_default_yaml.
Sub-shell execution is slow. To improve shell script execution speed:
- Replae $(expr) by $(()).
- Cache image file data and avoid executing ImageMagick.
- Prevent extra eval & subshell.
- Remove bash-only syntax to allow using dash.
# time ../make_default_yaml en
Before change: Real 9s, User 1m7s.
After (bash): Real 1.6s, User 8.8s.
After (dash): Real 1.0s, User 6.9s.
BRANCH=none
BUG=none
TEST=make
Change-Id: I59626fb1a211de82cf58fcd1331a5641b97e2823
Reviewed-on: https://gerrit.chromium.org/gerrit/37006
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'host')
0 files changed, 0 insertions, 0 deletions