[New-bugs-announce] [issue16394] Improving tee() memory footprint

Carsten Milkau report at bugs.python.org
Sat Nov 3 16:15:19 CET 2012

New submission from Carsten Milkau:

The memory footprint of itertools.tee can be reduced substantially by using a shared buffer for the child iterators (see sample code). If local queues are desired for efficient threading support, they can be combined with a global queue, allowing to constrain the size of local queues.

components: Library (Lib)
files: tee.py
messages: 174632
nosy: cami
priority: normal
severity: normal
status: open
title: Improving tee() memory footprint
type: performance
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file27856/tee.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list