This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Sergey.Kirpichev
Recipients Sergey.Kirpichev, rhettinger, tim.peters
Date 2021-05-17.04:56:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621227391.08.0.393685018724.issue44154@roundup.psfhosted.org>
In-reply-to
Content
> Oh yes - please do.

Ok, I did.

> It's not just pickle size - going through str() makes (un)pickling quadratic time in both directions if components are large.

Yeah, I noticed speedup too, but size was much more important for may application.

BTW, the same issue affects some other stdlib modules, ex. in the Decimal() it will be more efficient to use the tuple (sign, digit_tuple, exponent) instead of dumping strings.  Maybe more, simple fgrep suggests me also the ipaddress module, but I think here it's ok;-)
History
Date User Action Args
2021-05-17 04:56:31Sergey.Kirpichevsetrecipients: + Sergey.Kirpichev, tim.peters, rhettinger
2021-05-17 04:56:31Sergey.Kirpichevsetmessageid: <1621227391.08.0.393685018724.issue44154@roundup.psfhosted.org>
2021-05-17 04:56:31Sergey.Kirpichevlinkissue44154 messages
2021-05-17 04:56:30Sergey.Kirpichevcreate