[issue44821] Instance dictionaries should be created eagerly

2021-08-09 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44821] Instance dictionaries should be created eagerly

2021-08-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Close this? -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44821] Instance dictionaries should be created eagerly

2021-08-04 Thread Mark Shannon
Mark Shannon added the comment: New changeset cee67fa66129b5d1db5c8aa3884338f82f0da3de by Mark Shannon in branch 'main': bpo-44821: Eagerly assign __dict__ for new objects. (GH-27589) https://github.com/python/cpython/commit/cee67fa66129b5d1db5c8aa3884338f82f0da3de --

[issue44821] Instance dictionaries should be created eagerly

2021-08-04 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +26091 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27589 ___ Python tracker ___

[issue44821] Instance dictionaries should be created eagerly

2021-08-04 Thread Mark Shannon
New submission from Mark Shannon : Currently, instance dictionaries (__dict__ attribute) are created lazily when the first attribute is set. This is bad for performance for a number of reasons: 1. It causes additional checks on every attribute access. 2. It causes allocation of the object and