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 serhiy.storchaka
Recipients alexandre.vassalotti, amaury.forgeotdarc, pitrou, serhiy.storchaka
Date 2015-03-20.16:41:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426869690.45.0.603661252404.issue23419@psf.upfronthosting.co.za>
In-reply-to
Content
For a namedtuple such as turtle.Vec2D there is no significant difference in the time of unpickling. But for simpler type it is.

$ ./python -m timeit -s 'import pickle, turtle; global I' -s 'class I(int): pass' -s 'p = pickle.dumps([I(i) for i in range(1000)], 3)' -- 'pickle.loads(p)'

Before: 1000 loops, best of 3: 1.6 msec per loop
After:  1000 loops, best of 3: 1.82 msec per loop

So I withdraw my patch. Unpickling performance is more important than pickling performance, and status quo wins. Sorry for the noise.
History
Date User Action Args
2015-03-20 16:41:30serhiy.storchakasetrecipients: + serhiy.storchaka, amaury.forgeotdarc, pitrou, alexandre.vassalotti
2015-03-20 16:41:30serhiy.storchakasetmessageid: <1426869690.45.0.603661252404.issue23419@psf.upfronthosting.co.za>
2015-03-20 16:41:30serhiy.storchakalinkissue23419 messages
2015-03-20 16:41:30serhiy.storchakacreate