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

Reply via email to