Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; '*not*': 0.05; ':-)': 0.06; 'header:In-reply-to:1': 0.09; 'received:167.206.4': 0.16; 'received:cv.net': 0.16; 'received:hcvlny.cv.net': 0.16; 'received:srv.hcvlny.cv.net': 0.16; 'subject:() ': 0.16; 'wrote:': 0.18; '>>>': 0.18; 'to:2**1': 0.19; 'maybe': 0.21; 'code': 0.25; 'project,': 0.27; 'to:name:python-list': 0.28; "it'd": 0.30; 'really,': 0.30; 'chris': 0.30; 'subject:?': 0.31; 'pm,': 0.31; 'anyone': 0.31; 'to:addr:python-list': 0.32; 'actually': 0.33; 'header:User-Agent:1': 0.33; 'but': 0.37; 'put': 0.38; 'received:192': 0.38; "it's": 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; 'our': 0.63; 'benefit': 0.66; 'making': 0.67; 'saw': 0.67; 'production': 0.70 Date: Tue, 08 Nov 2011 17:51:27 -0500 From: John Posner Subject: Re: all() is slow? In-reply-to: To: Chris Angelico , python-list MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT X-Enigmail-Version: 1.3.2 References: <436fb6a3-1075-45a6-8f93-5612d050b11a@q35g2000prh.googlegroups.com> User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1320794497 news.xs4all.nl 6907 [2001:888:2000:d::a6]:41742 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15484 On 2:59 PM, Chris Angelico wrote: >>> So really, it's not "all() is slow" but "function calls are slow". >>> Maybe it'd be worthwhile making an all-factory: >> PLEASE say you're joking. If I saw code like that on any of our project, >> this would definitely qualify for a DailyWTF. > For the benefit of anyone who was actually in doubt: YES, I was > joking. Do *not* put code like this into any production project. Because an all-factory would produce code smell? :-)