run-tests: add a 4th `HGPORT` value
I want to add tls1.3 support, and test-https.t already uses the existing ports
to test tls1.0 through 1.2. It doesn't look to me like it can easily be
converted to a bunch of #testcases, because this also tests downgrades to prior
versions for the given client version.
This partially reverts
bc010fcd836b.
sslutil: drop the unused `commonssloptions()`
The last usage was removed in
94cf83d9a2c9.
sslutil: drop support for Python prior to 3.7
There's also a block of code around line 47 related to `ssl.HAS_TLSv1` to
determine the supported protocols that references "Python 3.7", but I'm not
altering that because the commit referenced there wasn't landed until just prior
to the 3.9 release, and I'm not sure what flavors of py38 might not have a
backport.
Avoid de-indenting for now for a clearer text diff.
rust-manifest: use `memchr` crate for all byte-finding needs
While writing a very dumb manifest diffing algorithm for a proof-of-concept
I saw that `Manifest::find_by_path` was much slower than I was expecting.
It turns out that the Rust stdlib uses slow (all is relative) code when
searching for byte positions for reasons ranging from portability, SIMD
API stability, nobody doing the work, etc. `memch` is much faster for these
purposes, so let's use it.
I was measuring ~670ms of profile time in `find_by_path`, after this patch
it went down to ~230ms.