u8_strset: start with 8 default entries

The previous 4 entries were exhausted on simple command lines, depending
on environment/build. Grow the initial size to 8 to avoid early allocs.

Closes #22633
This commit is contained in:
Stefan Eissing 2026-08-21 11:08:23 +02:00 committed by Daniel Stenberg
parent 4f8dabcec2
commit 2f1dda9691
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 16 additions and 16 deletions

View file

@ -36,7 +36,7 @@
* meaning 91% of our tests to not set more than 4 strings and
* 99% do not set more than 8.
*/
#define CURL_U8_STRSET_START_BITS 2
#define CURL_U8_STRSET_START_BITS 3
#define CURL_U8_STRSET_START_DIM (1U << CURL_U8_STRSET_START_BITS)
/* A set that can hold up to 256 strings identified by an `id'.