Opened 4 years ago

Closed 4 years ago

#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 (2)

comment:1 Changed 4 years ago by scoder

  • Owner changed from somebody to scoder
  • Status changed from new to assigned

comment:2 Changed 4 years ago by scoder

  • Milestone changed from wishlist to 0.13
  • Resolution set to fixed
  • Status changed from assigned to closed
  • Type changed from defect to enhancement
Note: See TracTickets for help on using tickets.