Reviewed-by: Amy Chan <[email protected]> > -----Original Message----- > From: Chen, Christine <[email protected]> > Sent: Monday, January 8, 2024 8:29 AM > To: S, Ashraf Ali <[email protected]>; [email protected] > Cc: Rebecca Cran <[email protected]>; Gao, Liming > <[email protected]>; Feng, Bob C <[email protected]>; Chan, > Amy <[email protected]>; Chaganty, Rangasai V > <[email protected]> > Subject: RE: [PATCH] BaseTools: Remove Duplicate sets of SkuName and SkuId > from allskuset > > Reviewed-by: Yuwei Chen <[email protected]> > > > -----Original Message----- > > From: S, Ashraf Ali <[email protected]> > > Sent: Monday, December 25, 2023 11:28 PM > > To: [email protected] > > Cc: S, Ashraf Ali <[email protected]>; Chen, Christine > > <[email protected]>; Rebecca Cran <[email protected]>; Gao, > Liming > > <[email protected]>; Feng, Bob C <[email protected]>; Chan, > > Amy <[email protected]>; Chaganty, Rangasai V > > <[email protected]> > > Subject: [PATCH] BaseTools: Remove Duplicate sets of SkuName and SkuId > > from allskuset > > > > Currently when the platform has many SKUs then allskuset will be having so > > many duplicate. and while parsing the allskuset will take longer time while > > assing Pcd.SkuInfoList. > > This patch is to eliminate those duplicate entires to reduce the build time > > > > Cc: Yuwei Chen <[email protected]> > > Cc: Rebecca Cran <[email protected]> > > Cc: Liming Gao <[email protected]> > > Cc: Bob Feng <[email protected]> > > Cc: Amy Chan <[email protected]> > > Cc: Sai Chaganty <[email protected]> > > Signed-off-by: Ashraf Ali S <[email protected]> > > --- > > BaseTools/Source/Python/AutoGen/PlatformAutoGen.py | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py > > b/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py > > index 592d4824a4..dac81454a9 100644 > > --- a/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py > > +++ b/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py > > @@ -707,6 +707,8 @@ class PlatformAutoGen(AutoGen): > > self._DynamicPcdList.extend(list(OtherPcdArray)) > > self._DynamicPcdList.sort() > > allskuset = [(SkuName, Sku.SkuId) for pcd in self._DynamicPcdList > > for > > (SkuName, Sku) in pcd.SkuInfoList.items()] > > + # Remove duplicate sets in the list > > + allskuset = list(set(allskuset)) > > for pcd in self._DynamicPcdList: > > if len(pcd.SkuInfoList) == 1: > > for (SkuName, SkuId) in allskuset: > > -- > > 2.39.1.windows.1
-=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113451): https://edk2.groups.io/g/devel/message/113451 Mute This Topic: https://groups.io/mt/103360241/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
