On Thu, Dec 16, 2021 at 6:03 AM Eric Snow <ericsnowcurren...@gmail.com> wrote:
> * using the ref count isn't the only viable approach; another would be
> checking the pointer itself
>    + put the object in a specific section of static data and compare
> the pointer against the bounds
>    + this avoids loading the actual object data if it is immortal
>    + for objects that are mostly treated as markers (e.g. None), this
> could have a meaningful impact
>    + not compatible with dynamically allocated objects
>

Sorry if this is a dumb question, but would it be possible to solve
that last point with an immortal arena [1] from which immortal objects
could be allocated? None/True/False could be allocated there, but so
could anything that is more dynamic, if it's decided as important
enough. It would still be possible to recognize them by pointer (since
the immortal arena would be a specific block of memory).

ChrisA

[1] That sounds like something from Norse mythology, actually
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/IQH4RXOBKFMABYU2KPE24YANUBMLE6UW/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to