Ticket #535 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Changed 4 years ago by scoder

  • owner changed from somebody to scoder
  • status changed from new to assigned

Changed 4 years ago by scoder

  • status changed from assigned to closed
  • type changed from defect to enhancement
  • resolution set to fixed
  • milestone changed from wishlist to 0.13
Note: See TracTickets for help on using tickets.