[Python-ideas] POPT (Python Ob ject Provider Threads)

Martin Bammer mrbm74 at gmail.com
Wed Jun 20 16:15:22 EDT 2018


I saw this free lists implementation this morning in the floatobject and 
listobject sources,

which already handles the reuse of objects. I must admit I like this 
implementation. It's pretty smart.

And yes I'm a little bit disappointed because it reduces the benefit of 
my idea a lot.


On 2018-06-20 13:29, Nick Coghlan wrote:
> On 20 June 2018 at 00:47, Martin Bammer <mrbm74 at gmail.com> wrote:
>> If this idea is well implemented I expect a big performance improvement for
>> all Python applications.
> Given the free lists already maintained for several builtin types in
> the reference implementation, I suspect you may be disappointed on
> that front :)
> (While object creation overhead certainly isn't trivial, the
> interpreter's already pretty aggressive about repurposing previously
> allocated and initialised memory for new instances)
> Cheers,
> Nick.

More information about the Python-ideas mailing list