]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Optimize string concatenation
authorBobCF <bob.c.feng@intel.com>
Thu, 8 Nov 2018 10:16:25 +0000 (18:16 +0800)
committerBobCF <bob.c.feng@intel.com>
Fri, 7 Dec 2018 02:30:21 +0000 (10:30 +0800)
commit4e375707392e4f9085e2d2342e41aee9d4df2b0a
tree35f6608ddc57cb9a46ddd5f4496b6c8bdfb1bdf3
parent2f818ed0fb57d98985d151781a2ce9b8683129ee
BaseTools: Optimize string concatenation

https://bugzilla.tianocore.org/show_bug.cgi?id=1288

This patch is one of build tool performance improvement
series patches.

This patch is going to use join function instead of
string += string2 statement.

Current code use string += string2 in a loop to combine
a string. while creating a string list in a loop and using
"".join(stringlist) after the loop will be much faster.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: BobCF <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
BaseTools/Source/Python/AutoGen/StrGather.py
BaseTools/Source/Python/Common/Misc.py
BaseTools/Source/Python/Workspace/InfBuildData.py
BaseTools/Source/Python/Workspace/WorkspaceCommon.py