Ticket #438 (new enhancement)

Opened 5 years ago

Last modified 4 years ago

Drop ref-counting for list index access

Reported by: scoder Owned by: somebody
Priority: major Milestone: wishlist
Component: Optimization Keywords:
Cc:

Description (last modified by scoder) (diff)

Follow-up for ticket #425: ref-counting can also be dropped for list index swap assignments, such as

cdef list l = [1,2,3,4,5]
l[0], l[2] = l[2], l[0]

However, this requires changes to the way the __Pyx_GetItemInt*() functions work, as they may do their own Py_INCREF() implicitly.

Change History

Changed 5 years ago by scoder

  • description modified (diff)

Changed 4 years ago by scoder

  • component changed from Code Generation to Optimization
Note: See TracTickets for help on using tickets.