summaryrefslogtreecommitdiff
path: root/shim.c
diff options
context:
space:
mode:
authorDennis Tseng <dennis.tseng@suse.com>2024-07-03 13:15:58 +0800
committerPeter Jones <pjones@redhat.com>2025-01-15 16:41:38 -0500
commit0345331fa871650faaa5a34baa9c3b30fea10667 (patch)
treeb645d6797b395484513c1660b9fbb757b336cb2e /shim.c
parentad8692e848cb520d734fbb075c30dcc3307ef8a4 (diff)
downloadefi-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 'shim.c')
0 files changed, 0 insertions, 0 deletions