]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c
Optimize the log entry search algorithm to save boot performance.
authorlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 29 May 2012 05:02:43 +0000 (05:02 +0000)
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 29 May 2012 05:02:43 +0000 (05:02 +0000)
commitb504f51998e839691e0d8c68f3f3093907575594
tree355651f32f904de21837b56b426e8245d82ef983
parent8b4d274cb1cc6e734fb483730f5667bbda736556
Optimize the log entry search algorithm to save boot performance.
1. Search from the first entry can be changed to Search from the end entry, because most End just follows its Start.
2. Match Start and End entry, the first comparison can be changed from Handle to EndTimeStamp, because only zero EndTimeStamp is required to be matched.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13367 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c
MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c