Join GitHub today
bpo-34093: marshal: Stabilize FLAG_REF usage #8226
But refcnt of interned string is very unstable.
To help reproducible build, use FLAG_REF for interned string even if
For unmarshaling speed, it's possible. But interned string has cost of interning; create temoporary string and calling PyDict_SetDefault(). Overhead of FLAG_REF (PyList_Append) is much smaller than it.
For marshaling memory overhead, it will increase hashtable size for each interned string with refcnt==1.
I don't expect it can be pragmatic problem though.