[3.10] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222) by miss-islington · Pull Request #99229 · python/cpython

Conversation

) (pythonGH-99222)

There was an unnecessary quadratic loop in idna decoding. This restores
the behavior to linear.

(cherry picked from commit d315722)

(cherry picked from commit a6f6c3a)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>

gpshead

@gpshead gpshead changed the title [3.10] [3.11] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222) [3.10] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222)

Nov 8, 2022

Labels