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 <rep...@bugs.python.org>
<http://bugs.python.org/issue17897>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to