• Raymond Hettinger's avatar
    Improve the implementation of itertools.tee(). · ad983e79
    Raymond Hettinger yazdı
    Formerly, underlying queue was implemented in terms of two lists.  The
    new queue is a series of singly-linked fixed length lists.
    
    The new implementation runs much faster, supports multi-way tees, and
    allows tees of tees without additional memory costs.
    
    The root ideas for this structure were contributed by Andrew Koenig
    and Guido van Rossum.
    ad983e79
itertoolsmodule.c 47.2 KB