This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients ezio.melotti, hroncok, vstinner
Date 2019-06-24.14:15:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561385711.6.0.00802558925599.issue37388@roundup.psfhosted.org>
In-reply-to
Content
Getting an error handler is expensive compared to the time to encode text/decode bytes. Python loads the error handler lazily to provide best performances. Text codecs are performance critical for Python.

If we add a check, it should only be enabled in development (python3 -X dev) and/or debug mode (./configure --with-pydebug).
History
Date User Action Args
2019-06-24 14:15:11vstinnersetrecipients: + vstinner, ezio.melotti, hroncok
2019-06-24 14:15:11vstinnersetmessageid: <1561385711.6.0.00802558925599.issue37388@roundup.psfhosted.org>
2019-06-24 14:15:11vstinnerlinkissue37388 messages
2019-06-24 14:15:11vstinnercreate