Message415630
I profiled dict[str, int](a=1, b=2), and it looks like a decent chunk of time comes from PyUnicode_New as used by PyObject_SetAttrString.
You could also try replacing PyObject_SetAttrString with PyObject_SetAttr and adding "__orig_class__" to the global strings with Tools/scripts/generate_global_objects.py, probably for a later PR. |
|
| Date |
User |
Action |
Args |
| 2022-03-20 19:54:52 | Dennis Sweeney | set | recipients:
+ Dennis Sweeney, gvanrossum, JelleZijlstra, corona10, kj, penguin_wwy |
| 2022-03-20 19:54:52 | Dennis Sweeney | set | messageid: <1647806092.62.0.56191624086.issue47067@roundup.psfhosted.org> |
| 2022-03-20 19:54:52 | Dennis Sweeney | link | issue47067 messages |
| 2022-03-20 19:54:52 | Dennis Sweeney | create | |
|