You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 thePyDecContextObject
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:
PyType_GetModuleByDef
is really slow. #119663Linked PRs
The text was updated successfully, but these errors were encountered: