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

Optimize list.pop() #1008

Closed
robertwb opened this issue Nov 5, 2009 · 1 comment
Closed

Optimize list.pop() #1008

robertwb opened this issue Nov 5, 2009 · 1 comment

Comments

@robertwb
Copy link
Contributor

robertwb commented Nov 5, 2009

We optimize append, we should optimize pop as well.

See also discussion at http://www.mail-archive.com/cython-dev@codespeak.net/

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

@robertwb
Copy link
Contributor Author

robertwb commented Nov 5, 2009

@robertwb changed resolution to fixed
status from new to closed
commented

http://hg.cython.org/cython-devel/rev/2e3dda4a7d23

Python provides no c api level pop, nor the primitives (the useful methods are all static). It mostly uses the public API, the one exception being the use of PyListObject->allocated (documented in listobject.h) and dispatching to the default pop for reallocation when the list is half empty.

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