Jussi Pakkanen added the comment:
This is slow even when ignores is set to a non-empty value. It's not as slow
but the real slowdown is in the whitespace regex. Here is a minimal sample:
input = ' abc'
re.search(r&
New submission from Jussi Pakkanen:
Attached is a script that runs a single regex against one line of text taking
over 12 seconds.
If you run the exact same regex in Perl it finishes immediately.
The slowness has something to do with spaces. If you replace consecutive spaces
in the input
New submission from Jussi Pakkanen:
Create a dummy certificate and build an ssl context like this:
ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
ctx.verify_mode = ssl.CERT_REQUIRED
ctx.load_verify_locations(cadata=dummy_certificate)
Then try to connect to a public service like this:
u