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

bpo-39829: Optimize __len__() being called twice in the list() constructor #31816

Merged
merged 15 commits into from Mar 14, 2022

Conversation

thatbirdguythatuknownot
Copy link
Contributor

@thatbirdguythatuknownot thatbirdguythatuknownot commented Mar 11, 2022

Copy link
Member

@methane methane left a comment

I want to round size up to even for memory efficiency.
(obmalloc aligns the memory block by 16byte on 64bit platform)
But it can be implemented in the other pull request.

Objects/listobject.c Outdated Show resolved Hide resolved
@methane methane merged commit 2153daf into python:main Mar 14, 2022
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants