[New-bugs-announce] [issue17897] Optimize unpickle prefetching

Serhiy Storchaka report at bugs.python.org
Fri May 3 20:16:39 CEST 2013

New submission from Serhiy Storchaka:

When C implementation of the unpickle reads a data, it also prefetches some data using peek() (if available) and then concatenates read and peeked chunks in the one input buffer. This causes an additional copying when a large data is read. The proposed patch gets rid of concatenating by moving a peeking before reading.

components: Extension Modules
files: pickle_peek.patch
keywords: patch
messages: 188317
nosy: alexandre.vassalotti, pitrou, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Optimize unpickle prefetching
type: performance
versions: Python 3.4
Added file: http://bugs.python.org/file30114/pickle_peek.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list