Ticket #365 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Changed 4 years ago by scoder

  • owner changed from somebody to scoder

Changed 4 years ago by scoder

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.