Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82278

Re: Nested loops is strangely slow, totally at a loss.

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <i@introo.me>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.041
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'e.g.,': 0.09; 'guys.': 0.09; 'generator.': 0.16; 'iterables': 0.16; 'iterators,': 0.16; 'subject:slow': 0.16; 'seems': 0.21; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'themselves': 0.32; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'thanks': 0.36; 'list': 0.37; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'content-disposition:inline': 0.62; 'regards.': 0.65
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=sEDlthqnYCujx0eAGMfEAXHq00YuIqc/U5FJZ0ew2js=; b=XrCu4EjMcUoDlaAndftp1Ye7uFXOCovXgjH//lhbchfEU/OSclhPzD0ePuwt7u6Tt6 M10CgB0p21Sj0Xg55RPjCeca50R6+kx94efD234Fswx74ZB3KpV1x418GZJ43WK5YAkN 9uBtEzSQe/auvo75EeClP5RrLnZdRj0TM6WFLCKGv8ch7m2+69rMSnt2d9XaHczF1bzA rC4IqaJuSnQRbF4lPvas/4qwob7rS/rvay9zkmdboQ3gVOzyqtuJalTx9VnnPkeMeJHC NkZPF1xHLDcPvdNg11XvJvvBHsUhVAGNmyyGHQ6IzW78AakXyUUUY+0fSauoiDq7CFpY OQ2Q==
X-Gm-Message-State ALoCoQlNXD3e/ibDdM2JJzdg7lgsoePzuwkKlBlBpkWj8l9GJZfxolB79TNNfbpKzyuKTWQljWXm
X-Received by 10.70.91.176 with SMTP id cf16mr5639843pdb.100.1418205805531; Wed, 10 Dec 2014 02:03:25 -0800 (PST)
Date Wed, 10 Dec 2014 18:03:21 +0800
From Shiyao Ma <i@introo.me>
To Python <python-list@python.org>
Subject Re: Nested loops is strangely slow, totally at a loss.
References <20141210052025.GA84184@FuzzyHorror>
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
In-Reply-To <20141210052025.GA84184@FuzzyHorror>
User-Agent All mail clients suck. This one just sucks way more.
X-Info Find me @introom on Freenode. Have beers! :)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.16806.1418207323.18130.python-list@python.org> (permalink)
Lines 8
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1418207323 news.xs4all.nl 2959 [2001:888:2000:d::a6]:37143
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:82278

Show key headers only | View raw


Thanks guys.

I was only aware of a limited iterables which themselves are iterators, e.g., the generator.

Seems like its really a pitfall. Any glossary, list on the iterables that *might* exhaust themselves?


Regards.

Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: Nested loops is strangely slow, totally at a loss. Shiyao Ma <i@introo.me> - 2014-12-10 18:03 +0800
  Re: Nested loops is strangely slow, totally at a loss. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-11 01:38 +1100

csiph-web