Ticket #365 (closed enhancement: fixed)
unicode.encode() should call the specific C-API encoding functions
| Reported by: | scoder | Owned by: | scoder |
|---|---|---|---|
| Priority: | major | Milestone: | 0.12 |
| Component: | Optimization | Keywords: | |
| Cc: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
