]> git.ipfire.org Git - thirdparty/openssl.git/commit
x509-store: reduce number of pre-allocated hashtable buckets
authorNikola Pajkovsky <nikolap@openssl.org>
Tue, 21 Oct 2025 16:49:27 +0000 (18:49 +0200)
committerNeil Horman <nhorman@openssl.org>
Wed, 22 Oct 2025 19:02:18 +0000 (15:02 -0400)
commit7420ab4866e69da6f0d52b09c6d80356b19ee128
treebfa68519b8ddbcbc13ba1c221316bc1d0cfef2db
parent55a0adf220baa1ee25fa1bab846bde5d57b484e1
x509-store: reduce number of pre-allocated hashtable buckets

pre-allocating too much hashtable objects to avoid the hashtable
regrowing is mistake, and had immediate impact on memory footprint.

Resolves: https://github.com/openssl/project/issues/1679
Link: https://openssl-library.org/performance/
Fixes: 04589b59ef50 ("x509store: reduce lock contention in X509_STORE")
Signed-off-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28965)
crypto/x509/x509_lu.c