performance: improve ossl_lh_strcasehash
authorPauli <pauli@openssl.org>
Fri, 20 May 2022 00:15:55 +0000 (10:15 +1000)
committerDmitry Belyavskiy <beldmit@gmail.com>
Sat, 21 May 2022 19:53:39 +0000 (21:53 +0200)
commita4e21d18d5b7cb4fef66c10f13b1b3b55945439f
tree3bc17e5c5d96c072a7fc7afad3db202cec62b103
parentb00cf0e790661636e1df1026554f712cc513592d
performance: improve ossl_lh_strcasehash

This improvement seems to roughly halve the time it takes to run the
ossl_lh_strcasehash function.

It should have no impact on the strings we hash and search for often (algorithm
names, property strings).

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18354)
crypto/lhash/lhash.c