-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Proposal:
It is known to be efficient to get a module state from an object directly rather than from a type. The same can go for the _decimal's context object (i.e. extending the PyDecContextObject struct).
Extending PyDecObject, which made no perf difference for me, seems to be a waste of memory with many objects.
cc @vstinner @erlend-aasland @mdboom
Links to previous discussion of this feature:
Linked PRs
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement