This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Dennis Sweeney
Recipients Dennis Sweeney, Mark.Shannon, barry, brandtbucher, carljm, dino.viehland, gregory.p.smith, itamaro
Date 2022-03-09.16:30:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646843442.0.0.669700941231.issue46896@roundup.psfhosted.org>
In-reply-to
Content
A curiosity: have you considered watching dict keys rather than whole dicts?

That way, changing global values would not have to de-optimize, only adding new global keys would.

Indexing into dict values array wouldn't be as efficient as embedding direct jump targets in JIT-generated machine code, but as long as we're not doing that, maybe watching the keys is a happy medium?
History
Date User Action Args
2022-03-09 16:30:42Dennis Sweeneysetrecipients: + Dennis Sweeney, barry, gregory.p.smith, carljm, dino.viehland, Mark.Shannon, brandtbucher, itamaro
2022-03-09 16:30:42Dennis Sweeneysetmessageid: <1646843442.0.0.669700941231.issue46896@roundup.psfhosted.org>
2022-03-09 16:30:41Dennis Sweeneylinkissue46896 messages
2022-03-09 16:30:41Dennis Sweeneycreate