diff options
| author | Jeremy Compostella <jeremy.compostella@intel.com> | 2025-11-26 21:35:13 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-12-02 05:21:22 +0300 |
| commit | 3af7eccf472d2308201fccc805db7e06acabd47c (patch) | |
| tree | f0a44eafa4e8bb073233caa3f6b12d1a6ab44b2e /ShellPkg/Library/UefiShellLevel2CommandsLib | |
| parent | 43e86ce5d5fcca1c4b6b45067ccd8a6cfab0e2b5 (diff) | |
| download | edk2-3af7eccf472d2308201fccc805db7e06acabd47c.tar.xz | |
BaseTools: AutoGen: Optimize tuple creation using tuple() for PcdDbBuffer
Replace manual loop-based tuple construction with the built-in tuple()
function when converting PcdDbBuffer to a tuple. This change
significantly improves performance—approximately three times
faster—resulting in substantial build time savings in large
environments.
Previously, the code iterated over each byte in PcdDbBuffer, unpacking
and appending it to a tuple. The new approach leverages
tuple(PcdDbBuffer) to achieve the same result more efficiently. The
generated tuple remains identical to the original implementation.
TEST=The generated tuple is the same than with to original code
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Diffstat (limited to 'ShellPkg/Library/UefiShellLevel2CommandsLib')
0 files changed, 0 insertions, 0 deletions
