]> git.ipfire.org Git - thirdparty/curl.git/commit
scripts: add schemetable.c
authorDaniel Stenberg <daniel@haxx.se>
Fri, 17 Nov 2023 12:33:17 +0000 (13:33 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 19 Nov 2023 12:57:31 +0000 (13:57 +0100)
commitd6447b1bd248ded565c701bb2b34f49f06707c5c
tree48e4eed3bd1de47f414cc520161880c7a7ef7859
parentfa714830e92cba7b16b9d3f2cc92a72ee9d821fa
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.
scripts/Makefile.am
scripts/schemetable.c [new file with mode: 0644]