In the meanwhile, I updated the code of frozendict to the new 3.10 code. And here I need some help.
As you can see by the new benchs: https://github.com/Marco-Sulla/cpython/blob/frozendict/frozendict/test/bench.txt creation of frozendict is not faster anymore. This is because Inada introduced memcpy to do a fast init of a dict from a "good" dict. I tried to copy the code for frozendict, but I get a good old memory corruption. I passed several hours to understand what I'm doing wrong, without success. The code is the one commented out at lines 1084 and 2978, starting with a "it does not work" comment... https://github.com/Marco-Sulla/cpython/blob/frozendict/Objects/dictobject.c _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/CJZMIAHIBY4D2MOAAKPCHTKJDCGFOGF6/ Code of Conduct: http://python.org/psf/codeofconduct/