Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve shortcut performance when comparing two boolean expressions #667

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jul 3, 2024

  1. 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>
    dennis-tseng99 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    9d90fec View commit details
    Browse the repository at this point in the history