scripts: add schemetable.c

This tool generates a scheme-matching table.

It iterates over a number of different initial and shift values in order
to find the hash algorithm that needs the smallest possible table.

The generated hash function, table and table size then needs to be used
by the url.c:Curl_getn_scheme_handler() function.
This commit is contained in:
Daniel Stenberg 2023-11-17 13:33:17 +01:00
parent fa714830e9
commit d6447b1bd2
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 208 additions and 1 deletions

View file

@ -23,7 +23,7 @@
###########################################################################
EXTRA_DIST = updatemanpages.pl coverage.sh completion.pl firefox-db2pem.sh \
checksrc.pl mk-ca-bundle.pl
checksrc.pl mk-ca-bundle.pl schemetable.c
ZSH_FUNCTIONS_DIR = @ZSH_FUNCTIONS_DIR@
FISH_FUNCTIONS_DIR = @FISH_FUNCTIONS_DIR@