Bugs item #1209324, was opened at 2005-05-26 17:58 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1209324&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: None Status: Open Resolution: None Priority: 5 Submitted By: Fredrik Johansson (fredrik_j) Assigned to: Nobody/Anonymous (nobody) Summary: longs should be pickled in hexadecimal Initial Comment: Longs are currently pickled to their decimal representation. However, converting a very large number represented in a binary base (used by Python longs) to decimal is inefficient. For example, the operation pickle.dumps(123**100001) takes 50 seconds on my computer. The hexadecimal representation of the same number, via hex(), can be computed in an instant. The hexadecimal representation also has the benefit of being more concise. I therefore suggest that the pickle format is changed so that pickled longs are represented in hexadecimal. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1209324&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com