core_namemap.c: 2048 hashtable buckets should be sufficient

It is unlikely we would need more than 4000 names and even
with more names (up to 8192) it would still work, just
the performance fo the namemap would degrade.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/24504)
This commit is contained in:
Tomas Mraz 2024-08-16 15:54:15 +02:00
parent 9f7489835d
commit f0b1d4d1b0
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
#include "internal/sizes.h"
#include "crypto/context.h"
#define NAMEMAP_HT_BUCKETS 4096
#define NAMEMAP_HT_BUCKETS 2048
HT_START_KEY_DEFN(namenum_key)
HT_DEF_KEY_FIELD_CHAR_ARRAY(name, 64)

@ -1 +1 @@
Subproject commit e77927ec1b3b3633d6fd2d905df6fdc59810c9e0
Subproject commit 9f7667061314ecf9a287ce1c9702073ca1e345e3