Skip to content

List Growth Factor #718

@Zaczero

Description

@Zaczero

Hello amazing Python people :-) I want to preface this by acknowledging that I don't have experience implementing programming language internals, so I may be missing crucial information. More, it's my first interaction with the CPython community.

I've been recently watching an interesting analysis on array growth factors. At one point there was a comparison of CPython's growth factor ~1.125 and other languages — based on this Wikipedia section. The video highlights that such choice focuses more on memory savings rather than performance. I believe this ratio might be too conservative for today's speed/space trade-off considerations — perhaps it's a good time to revisit it and hopefully make faster-cpython!

While searching for sources for this issue, I came across a comment from @rhettingeran amazing presenter!:

We should definitely revisit the over-allocation strategy. I last worked on the existing strategy back in 2004. Since then, the weighting of the speed/space trade-off considerations have changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions