Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop ref-counting for list index access #1000

Open
robertwb opened this issue Oct 27, 2009 · 2 comments
Open

Drop ref-counting for list index access #1000

robertwb opened this issue Oct 27, 2009 · 2 comments

Comments

@robertwb
Copy link
Contributor

robertwb commented Oct 27, 2009

Follow-up for ticket http://trac.cython.org/ticket/425: ref-counting can also be dropped for list index swap assignments, such as

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

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

Migrated from http://trac.cython.org/ticket/438

@robertwb
Copy link
Contributor Author

robertwb commented Oct 28, 2009

scoder changed description from

Follow-up for ticket http://trac.cython.org/ticket/425: ref-counting can also be dropped for list index swap assignments, such as

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

to

Follow-up for ticket http://trac.cython.org/ticket/425: ref-counting can also be dropped for list index swap assignments, such as

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

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

@robertwb
Copy link
Contributor Author

scoder changed component from Code Generation to Optimization
commented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant