]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg/BaseUefiDecompressLib: Improve performance of boundary validation
authorShenglei Zhang <shenglei.zhang@intel.com>
Mon, 25 Feb 2019 05:55:54 +0000 (13:55 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 27 Mar 2019 12:11:22 +0000 (20:11 +0800)
commit8028f03032182f2c72e7699e1d14322bb5586581
tree6def8b75cd0a34e315824b65e311c19fb979c7b8
parent55756c88aec9d3269d8544746907838ba921e90b
MdePkg/BaseUefiDecompressLib: Improve performance of boundary validation

The boundary validation checking in MakeTable() performs on
every loop iteration. This could be improved by checking
just once before the loop.
https://bugzilla.tianocore.org/show_bug.cgi?id=1329

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c