Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: 0596e5fa05a7badb30fb3d4092d41a787788655c https://github.com/tianocore/edk2/commit/0596e5fa05a7badb30fb3d4092d41a787788655c Author: Xiaoqiang Zhang <xiaoqiang.zh...@intel.com> Date: 2024-08-30 (Fri, 30 Aug 2024)
Changed paths: M MdeModulePkg/Core/Dxe/DxeMain.h M MdeModulePkg/Core/Dxe/DxeMain.inf M MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c M MdeModulePkg/Core/Dxe/Hand/Handle.c Log Message: ----------- MdeModulePkg: CoreValidateHandle Optimization REF : https://bugzilla.tianocore.org/show_bug.cgi?id=4817 Before entering BIOS setup, CoreValidateHandle function executed over 600,000 times during BDS phase on latest 8S server platform. In CoreValidateHandle function, current implementation will go through the doubly-linked list handle database in each call, and this will have big impact on boot performance. The optimization is using Red-black tree to store the EFI handle address when insert each EFI handle into the handle database, and remove the handle from Red-black tree if the handle is removed from the handle database. CoreValidateHandle function changed to go through the Red-black tree. After verification on latest 8S server platform, BDS boot time can save 20s+ after this change. Cc: Ray Ni <ray...@intel.com> Cc: Star Zeng <star.z...@intel.com> Cc: Liming Gao <gaolim...@byosoft.com.cn> Signed-off-by: Andrew Fish <af...@apple.com> Tested-by: Xiaoqiang Zhang <xiaoqiang.zh...@intel.com> Commit: f31aa47deea9239d61b41fda8d445ecf607fcef9 https://github.com/tianocore/edk2/commit/f31aa47deea9239d61b41fda8d445ecf607fcef9 Author: Xiaoqiang Zhang <xiaoqiang.zh...@intel.com> Date: 2024-08-30 (Fri, 30 Aug 2024) Changed paths: M MdePkg/MdeLibs.dsc.inc Log Message: ----------- MdePkg: CoreValidateHandle Optimization REF : https://bugzilla.tianocore.org/show_bug.cgi?id=4817 This commit is to add OrderedCollectionLib in MdePkg for DxeCore usage. Cc: Ray Ni <ray...@intel.com> Cc: Star Zeng <star.z...@intel.com> Cc: Liming Gao <gaolim...@byosoft.com.cn> Signed-off-by: Andrew Fish <af...@apple.com> Tested-by: Xiaoqiang Zhang <xiaoqiang.zh...@intel.com> Compare: https://github.com/tianocore/edk2/compare/a63a7dbf8596...f31aa47deea9 To unsubscribe from these emails, change your notification settings at https://github.com/tianocore/edk2/settings/notifications _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits