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
{{ message }}
Repository navigation
_decimal: Store a module state in objects for faster access #124688
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.
Activity
gh-124688: _decimal: Get module state from ctx for performance (#124691)
picnixz commentedon Sep 28, 2024
Closing since completed in dc12237.