[issue17787] Optimize pickling function dispatch in hot loops.

Alexandre Vassalotti report at bugs.python.org
Sat Apr 20 22:41:18 CEST 2013


Alexandre Vassalotti added the comment:

Are you asking why do we need to call both PyMemoTable_Get and memo_get? Or, why do we fetching the memo was moved to the save functions? For the former, there is no real reason. The extra call could be removed though profiling doesn't show this call as a hot spot.

If the latter, we need this because the patch allow save(), which is where the memo was fetched, to be skipped.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17787>
_______________________________________


More information about the Python-bugs-list mailing list