dracut icon indicating copy to clipboard operation
dracut copied to clipboard

perf(dracut): optimize get_cpu_vendor function

Open aafeijoo-suse opened this issue 2 years ago • 2 comments

This function performs two calls to grep and its result is always the same, so save it into a cpu_vendor variable.

Checklist

  • [X] I have tested it locally
  • [ ] I have reviewed and updated any documentation if relevant
  • [ ] I am providing new code and test(s) for it

aafeijoo-suse avatar Apr 26 '23 10:04 aafeijoo-suse

This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions.

stale[bot] avatar Jun 09 '23 22:06 stale[bot]

This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions.

stale[bot] avatar Apr 22 '24 09:04 stale[bot]