Ticket #365 (closed enhancement: fixed)
unicode.encode() should call the specific C-API encoding functions
|Reported by:||scoder||Owned by:||scoder|
Calling unicode.encode() leads to very inefficient code that looks up the method attribute and calls it. In most cases, the encoding parameters are constant, which would allow calling the respective C-API encoding function directly.