Re: [Python-Dev] Const access to CPython objects outside of GIL?

2018-07-18 Thread Radim Řehůřek
Thanks for your feedback everyone. Given the overwhelmingly negative response, we'll drop this line of investigation. If more people bring up the same request in the future (unlikely), feel free to reach out to us for some extra set of hands. Given the initial poking, I still think a "reasonable s

Re: [Python-Dev] Const access to CPython objects outside of GIL?

2018-07-17 Thread Radim Řehůřek
k, but I'm thinking a practical subset could be relatively straightforward while still useful, 80/20. On Tue, Jul 17, 2018 at 7:15 AM, Tim Peters wrote: > [Radim Řehůřek ] > >> one of our Python projects calls for pretty heavy, low-level >> optimizations. > > >>

[Python-Dev] Const access to CPython objects outside of GIL?

2018-07-16 Thread Radim Řehůřek
Hi all, one of our Python projects calls for pretty heavy, low-level optimizations. We went down the rabbit hole and determined that having access to PyList_GET_ITEM(list), PyInt_AS_LONG(int) and PyDict_GetItem(dict, unicode) on Python objects **outside of GIL** might be a good-enough solution. T