Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.060 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'subject:Python': 0.06; 'enough.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'roy': 0.16; 'sorting': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'input': 0.22; 'sort': 0.25; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'fixed': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'file': 0.32; 'totally': 0.33; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'disk': 0.36; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'access,': 0.60; 'smith': 0.68; 'fact,': 0.69; 'subject:long': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=OU1WqAu3LaBwYUkWelHELr1wh6bbbcURYmbbAhxeeWA=; b=fmZV3m+VduL/g76ehbaZsoagPQvE4bVtp3sU3+6fvyWfIOyTXnZH/K5q/0hPbj9jL8 deTN6/2tzGVpmNs5DY2hcWdK0tm0pLxjGPh0J90XfQcKUPe6kjAqJFJxmq/bIb9+7z1n ka6a21XvC+PJYwOc3axIvJmYkktHQT2QaT4oeWmjlJjQoGyc4kPWPOS/jlv7OIoH7oLX DXgqFXxyzqciOiyMD2yx+6g/tErfptRskkSMqMUwjXOqLCptPYmu9n6eNw1Rdgb9iPL6 jpAJxSEzHX+jVT03KsLZcXzgrOHeq7HqTAt+CVc075MflJAStlbbbFJuUBMg7pOMFD9Z d+ug== MIME-Version: 1.0 X-Received: by 10.58.34.12 with SMTP id v12mr1145579vei.55.1364996048474; Wed, 03 Apr 2013 06:34:08 -0700 (PDT) In-Reply-To: References: <5159beb6$0$29967$c3e8da3$5496439d@news.astraweb.com> <4103dc28-a0dc-4740-bb38-b6bcb58bedfb@h1g2000vbx.googlegroups.com> <87dff083-14d8-4163-89f3-d78a9be6c802@c15g2000vbl.googlegroups.com> <3qadncD4-6fcPsbMnZ2dnUVZ_rqdnZ2d@westnet.com.au> <5f8ed721-7c89-4ffd-8f2b-21979cc3386a@kk11g2000pbb.googlegroups.com> <1f2dnfPBhY54eMbMnZ2dnUVZ_oSdnZ2d@westnet.com.au> Date: Thu, 4 Apr 2013 00:34:08 +1100 Subject: Re: Performance of int/long in Python 3 From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364996056 news.xs4all.nl 6910 [2001:888:2000:d::a6]:45770 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42665 On Thu, Apr 4, 2013 at 12:25 AM, Roy Smith wrote: > > Fair enough. In fact, given that reading the file from disk is O(n) and > sorting it is O(n log n), at some point, the sort will totally swamp the > input time. But given the much larger fixed cost of disk access, that might take an awful lot of strings... ChrisA