gh-91924: Optimize unicode_check_encoding_errors() (#93200)
Avoid _PyCodec_Lookup() and PyCodec_LookupError() for most common built-in encodings and error handlers to avoid creating a temporary Unicode string object, whereas these encodings and error handlers are known to be valid.
V
Victor Stinner committed
5f8c3fb99746b9a7fadd4ec24cc4025b9c5d79d0
Parent: efc5d37
Committed by GitHub <noreply@github.com>
on 5/26/2022, 10:39:49 PM