Hi,

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.

Regards,
Martin

On 2018-06-20 13:29, Nick Coghlan wrote:
On 20 June 2018 at 00:47, Martin Bammer <mrb...@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.


_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to