[Python-Dev] Re: Moving away from _Py_IDENTIFIER().

2022-02-05 Thread Guido van Rossum
On Sat, Feb 5, 2022 at 5:18 AM Steve Dower wrote: > The gap this has with what I'd like to see is that it will only work for > compile-time strings. If instead it could work for an arbitrary uint8_t > pointer, rather than an embedded array, that allows even runtime strings > to be very cheaply pa

[Python-Dev] Re: Moving away from _Py_IDENTIFIER().

2022-02-05 Thread Steve Dower
On 04Feb2022 2303, Guido van Rossum wrote: You *can* allocate unicode objects statically. We do it in deepfreeze, and Eric's PR under discussion here (https://github.com/python/cpython/pull/30928 ) does it. I wonder if a better solution than that P