Ticket #438 (new enhancement)
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
Note: See
TracTickets for help on using
tickets.
