Opened 7 years ago

Last modified 6 years ago

#438 new enhancement

Drop ref-counting for list index access

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

Description (last modified by scoder)

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

comment:1 Changed 7 years ago by scoder

  • Description modified (diff)

comment:2 Changed 6 years ago by scoder

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