[issue16832] Expose cache validity checking support in ABCMeta
Antoine Pitrou
report at bugs.python.org
Sat May 25 18:24:03 CEST 2013
Antoine Pitrou added the comment:
> 1. Some of the cached entries may never be accessed again, so
> recalculating them will be a waste
> 2. The object graph may change again before they're next accessed, so
> recalculating any entries at all will be waste
Yup, hence the "cost/benefit compromise" ;-)
My assumption here was that ABC registrations change quite infrequently
compared to the invocations of generic functions, so transferring most
of the cost to registration-time (rather than invocation-time) would be
a benefit.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16832>
_______________________________________
More information about the Python-bugs-list
mailing list