protocol: simpler Curl_getn_scheme runs faster

Iterating unit test 1627 50,000 times show the new version to be 31%
faster on my machine.

- unit1627: add more test strings, In particular three, five and six letter
  non-existing schemes.

- remove scripts/schemetable.c, not used anymore

Closes #22658
This commit is contained in:
Daniel Stenberg 2026-08-24 11:07:17 +02:00
parent c2676bf9e6
commit 2687751471
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 274 additions and 272 deletions

View file

@ -23,7 +23,7 @@
###########################################################################
EXTRA_DIST = coverage.sh completion.pl firefox-db2pem.sh checksrc.pl \
checksrc-all.pl mk-ca-bundle.pl mk-unity.pl schemetable.c cd2nroff nroff2cd \
checksrc-all.pl mk-ca-bundle.pl mk-unity.pl cd2nroff nroff2cd \
cdall cd2cd managen dmaketgz maketgz release-tools.sh verify-release \
cmakelint.sh cmakeopts.sh mdlinkcheck CMakeLists.txt perlcheck.sh \
pythonlint.sh spacecheck.pl randdisable wcurl top-complexity \