-
Notifications
You must be signed in to change notification settings - Fork 52
Description
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 @rhettinger — an 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.