diff options
| author | Paolo Bonzini | 2016-11-02 16:10:23 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2016-12-22 16:00:23 +0100 |
| commit | 5ffb3505412b08fb6398748de7eb0fb2cfbfe4e7 (patch) | |
| tree | ecf33b4bbb55afcca9aa988675f9dedfd7dce97a /scripts/switch-timer-api | |
| parent | watchdog: 6300esb: add exit function (diff) | |
| download | qemu-5ffb3505412b08fb6398748de7eb0fb2cfbfe4e7.tar.gz qemu-5ffb3505412b08fb6398748de7eb0fb2cfbfe4e7.tar.xz qemu-5ffb3505412b08fb6398748de7eb0fb2cfbfe4e7.zip | |
rules.mak: speedup save-vars load-vars
Unnesting variables spends a lot of time parsing and executing foreach
and if functions. Because actually very few variables have to be
saved and restored, a good strategy is to remember what has to be done
in load-vars, and only iterate the right variables in load-vars.
For save-vars, unroll the foreach loop to provide another small
improvement.
This speeds up a "noop" build from around 15.5 seconds on my laptop
to 11.7 (25% roughly).
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
