diff options
author | Carsey, Jaben </o=Intel/ou=Americas01/cn=Workers/cn=Carsey, Jaben> | 2018-04-06 07:13:58 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-04-10 10:05:14 +0800 |
commit | 29189291e5927381d1465d96792115e39ef4da69 (patch) | |
tree | ec245e3b89ed6ce7c8e7e67633e74ed92ef14326 /BaseTools/Source/Python/AutoGen/AutoGen.py | |
parent | 339fe8dd6a4e756f87825c8f1dd5c38204951985 (diff) | |
download | edk2-29189291e5927381d1465d96792115e39ef4da69.tar.gz edk2-29189291e5927381d1465d96792115e39ef4da69.tar.bz2 edk2-29189291e5927381d1465d96792115e39ef4da69.zip |
BaseTools: change another list to set
potentially accelerate "in" testing which is the use for this variable
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/AutoGen.py')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/AutoGen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py index 9c976c3727..296b6e3f75 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -3778,7 +3778,7 @@ class ModuleAutoGen(AutoGen): if not self.SourceFileList:
return []
- NameGuids = []
+ NameGuids = set()
for SrcFile in self.SourceFileList:
if SrcFile.Ext.lower() != '.vfr':
continue
@@ -3810,7 +3810,7 @@ class ModuleAutoGen(AutoGen): if not Guid:
break
NameArray = ConvertStringToByteArray('L"' + Name.group(1) + '"')
- NameGuids.append((NameArray, GuidStructureStringToGuidString(Guid.group(1))))
+ NameGuids.add((NameArray, GuidStructureStringToGuidString(Guid.group(1))))
Pos = Content.find('efivarstore', Name.end())
if not NameGuids:
return []
|