Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information