Performance regression from using `email.message.Message.get_params()` as replacement of `cgi.parse_header` following PEP 594 - Python Help - Discussions on Python.org

Performance regression from using `email.message.Message.get_params()` as replacement of `cgi.parse_header` following PEP 594 - Python Help - Discussions on Python.org

Forum
Switching to email.message.Message.get_params for parsing Content-Type headers in Django has introduced significant performance overhead on every request in WSGI and ASGI setups.