# A fast, free threading Python

**URL:** <https://discuss.python.org/t/a-fast-free-threading-python/27903>\
**Category:** Ideas\
**Created:** [June 15, 2023, 3:28pm UTC](https://discuss.python.org/t/a-fast-free-threading-python/27903 "2023-06-15T15:28:04Z")\
**Posts on this page:** 1\
**Showing post:** 98

<div class="post-metadata">

**Author:** ![gpshead](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/gpshead/32/54_2.png) [@gpshead](https://discuss.python.org/u/gpshead)\
**Post date:** [July 7, 2023, 11:46pm UTC](https://discuss.python.org/t/a-fast-free-threading-python/27903/98 "2023-07-07T23:46:24Z")

</div>

> [@lieryan](#):
>
> In my ideal world of Python concurrency, Python multiple interpreter would gain an arena allocator model. By default, each interpreter owns a single default arena and all objects belong to …

&

> [@GalaxySnail](#):
>
> Now that we have a per-interpreter GIL in 3.12, imagine if there were a way to send ownership of objects between interpreters, without pickling or memcpy

At the high level this is the kind of thing I’d **love someone to try creating** for per-subinterpreter-GIL use! This is also quite hard, but I assume there are interested folks out there.

Intuitively I _expect_ this winds up being the same problem that needs to be solved for free threading _(which PEP-703 appears to do)_: our pure reference counting model is the most significant reason we have a GIL - in order to share objects between multiple threads you need to make the reference counts work without that single lock.

Someone really needs to try creating explicitly shared objects implementation for CPython and subinterpreters to prove or disprove it’s actual utility. In the absence of that, I wouldn’t point to it and suggest it is a _better_ solution. I consider it an open avenue of future work. _(Even if we get free threading, performant explicit sharing would be something I expect many would appreciate having.)_

---

_[View the full topic](https://discuss.python.org/t/a-fast-free-threading-python/27903)._
