[New-bugs-announce] [issue19219] speed up marshal.loads()

Antoine Pitrou report at bugs.python.org
Thu Oct 10 21:49:12 CEST 2013


New submission from Antoine Pitrou:

This patch contains assorted improvements for unmarshalling pyc files. It will also make them ~10% smaller.

$ ./python -m timeit -s "import marshal; d=marshal.dumps(tuple((i, str(i)) for i in range(1000)))" "marshal.loads(d)"

-> 3.4 unpatched: 232 usec per loop
-> 3.4 patched: 96.3 usec per loop
-> 2.7 (for reference): 76.5 usec per loop

----------
components: Interpreter Core
files: marshal_opts4.patch
keywords: patch
messages: 199408
nosy: barry, christian.heimes, pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: speed up marshal.loads()
type: performance
versions: Python 3.4
Added file: http://bugs.python.org/file32037/marshal_opts4.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19219>
_______________________________________


More information about the New-bugs-announce mailing list