Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 3af7eccf472d2308201fccc805db7e06acabd47c
      
https://github.com/tianocore/edk2/commit/3af7eccf472d2308201fccc805db7e06acabd47c
  Author: Jeremy Compostella <[email protected]>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M BaseTools/Source/Python/AutoGen/GenPcdDb.py

  Log Message:
  -----------
  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 <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to