diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-11-02 16:10:23 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-12-22 16:00:23 +0100 |
commit | 5ffb3505412b08fb6398748de7eb0fb2cfbfe4e7 (patch) | |
tree | ecf33b4bbb55afcca9aa988675f9dedfd7dce97a /audio/dsound_template.h | |
parent | eb7a20a3616085d46aa6b4b4224e15587ec67e6e (diff) |
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 'audio/dsound_template.h')
0 files changed, 0 insertions, 0 deletions