[issue44154] Optimize Fraction pickling
Tim Peters
report at bugs.python.org
Mon May 17 00:38:31 EDT 2021
Tim Peters <tim at python.org> added the comment:
Oh yes - please do. It's not just pickle size - going through str() makes (un)pickling quadratic time in both directions if components are large. Pickle the component ints instead, and the more recent pickle protocol(s) can do both directions in linear time instead.
----------
nosy: +tim.peters
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44154>
_______________________________________
More information about the Python-bugs-list
mailing list