]> git.proxmox.com Git - mirror_edk2.git/commit - CryptoPkg/Library/TlsLib/TlsConfig.c
CryptoPkg/TlsLib: use binary search in the TlsGetCipherMapping() function
authorLaszlo Ersek <lersek@redhat.com>
Sat, 31 Mar 2018 15:06:39 +0000 (17:06 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Fri, 13 Apr 2018 12:06:16 +0000 (14:06 +0200)
commit5eadb54e26e239429e8b4fe18897781f2321738a
treeffb6115f1897b03463c98ae16fb6fa36000123ca
parentecfd37ba1bfe0aacfd4c234013a8aa77811f8b80
CryptoPkg/TlsLib: use binary search in the TlsGetCipherMapping() function

Improve the performance of the TlsGetCipherMapping() function by adopting
the binary search from DhcpFindOptionFormat()
[MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.c].

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Qin Long <qin.long@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Ting Ye <ting.ye@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=915
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Long Qin <qin.long@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
CryptoPkg/Library/TlsLib/TlsConfig.c