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

CPU: Optimizing the Method of Obtaining CPU Version Information #5722

Merged
merged 1 commit into from
Jul 12, 2023
Merged

Commits on Jul 12, 2023

  1. cpu: Optimizing the Method of Obtaining CPU Version Information

    1.By using the get() method to obtain matching patterns, it avoids using try exception to capture KeyError exceptions.
    2.Immediately return the result after finding the version number to avoid unnecessary iteration.
    3.Use an empty string as the default return result to avoid returning None
    
    Signed-off-by: ut003460 <[email protected]>
    ut003460 committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    a0ed2b8 View commit details
    Browse the repository at this point in the history