Ticket #535 (closed enhancement: fixed)
Optimise indexed unicode character comparisons (ustring[0] == u'a')
| Reported by: | scoder | Owned by: | scoder |
|---|---|---|---|
| Priority: | major | Milestone: | 0.13 |
| Component: | Code Generation | Keywords: | |
| Cc: |
Description
Currently, this
cdef unicode s = ... s[0] == u'a'
is a lot slower than
cdef unicode s = ... (<Py_UNICODE>s[0]) == u'a'
It shouldn't be.
Change History
Note: See
TracTickets for help on using
tickets.
