Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I’m curious why the dict->frozendict operation is not an O(1) operation when there’s a refcnt of 1 on the dict - that resolves the spooky action at a distance problem raised and solves the performance for the most common usage pattern (build up the dict progressively and convert to a frozendict for concurrent reads).




Because optimizations are not added to the PEP, but added later.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: