]> granicus.if.org Git - python/commit
Got rid of mdumps; I timed it, and struct.pack("<i", x) is more than
authorGuido van Rossum <guido@python.org>
Tue, 28 Jan 2003 03:03:08 +0000 (03:03 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 28 Jan 2003 03:03:08 +0000 (03:03 +0000)
commit5c938d00a1cbe5b7d0c478987b726bb31f169c82
treef5b1ed761bbf75c596b25f12f99edfe5486f1342
parentf558da0f905d8598b05bed0a5046ca72efe1f5af
Got rid of mdumps; I timed it, and struct.pack("<i", x) is more than
40% faster than marshal.dumps(x)[1:]!  (That's not counting the
module attribute lookups, which can be avoided in either case.)
Lib/pickle.py