diff options
| author | Dennis Tseng <dennis.tseng@suse.com> | 2024-07-03 13:15:58 +0800 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2025-01-15 16:41:38 -0500 |
| commit | 0345331fa871650faaa5a34baa9c3b30fea10667 (patch) | |
| tree | b645d6797b395484513c1660b9fbb757b336cb2e /mock-variables.c | |
| parent | ad8692e848cb520d734fbb075c30dcc3307ef8a4 (diff) | |
| download | efi-boot-shim-0345331fa871650faaa5a34baa9c3b30fea10667.tar.gz efi-boot-shim-0345331fa871650faaa5a34baa9c3b30fea10667.zip | |
Improve shortcut performance when comparing two boolean expressions
In original sbat.c:
...
else if (preserve_sbat_uefi_variable(sbat, sbatsize, attributes,
sbat_var_candidate) &&
!reset_sbat) {
...
The time omplexity of preserve_sbat_uefi_variable() is higher than
reset_sbat. Maybe we could swap both of them to calculate reset_sbat
first. Such that the shortcut performance can be improved.
Signed-off-by: Dennis Tseng <dennis.tseng@suse.com>
Diffstat (limited to 'mock-variables.c')
0 files changed, 0 insertions, 0 deletions
