Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.036 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'startup': 0.05; 'subject:Python': 0.06; 'binary': 0.07; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'search:': 0.16; 'subject:user': 0.16; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'running': 0.33; 'more,': 0.35; 'received:google.com': 0.35; 'subject:New': 0.37; 'two': 0.37; 'server': 0.38; 'nov': 0.38; 'to:addr:python- list': 0.38; '12,': 0.39; 'to:addr:python.org': 0.39; 'subject: / ': 0.60; 'worth': 0.66; 'obvious': 0.74; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=jnlLAsu68wI95rSeSbpsfx5N2lizPGEzZ1kbx7ARQfg=; b=ZekJfAFEEgpYyhvmC5ZSl4Y6G8U53wQ0vIC+ddLvQzBKap8BK6pdMicHUr7L0EyyAc 0nQqmUXTcIG5VvNie9HQAjqBML8Md3eg/PmLrmK50eWNZ8/kExG2yHZ9gk0bR0SEa5+y RIaYjXFUGtEmV+HqxFv4B202PexBzhT5CWc1G4I15m96am5eSLIsqemSjV5EMtGoWH/s QIAuCcBzYGrOFeTJ5xtkCFDUw/aGijIDY4B5U/rwessLFXPecKns+tDcXQ+Yz4YYR0nR C8EOBm6shYByCHHq38FHmCGsHU1KT8OpOYU4+qcbvFwK+S68Zmwjt96f4K7or9U5lweQ ZKtg== MIME-Version: 1.0 X-Received: by 10.66.147.9 with SMTP id tg9mr33300969pab.5.1384208517418; Mon, 11 Nov 2013 14:21:57 -0800 (PST) In-Reply-To: References: <-JadnUirYuhUruPPnZ2dnUVZ8rSdnZ2d@bt.com> <1c4c0901-f80a-42f3-9df5-7e7431353079@googlegroups.com> Date: Tue, 12 Nov 2013 09:21:57 +1100 Subject: Re: New user's initial thoughts / criticisms of Python 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384208527 news.xs4all.nl 15975 [2001:888:2000:d::a6]:37540 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:59104 On Tue, Nov 12, 2013 at 7:50 AM, Joshua Landau wrote: > The obvious way to me is a binary search: Which makes an O(log n) search where I have an O(1) lookup. The startup cost of denormalization doesn't scale, so when the server keeps running for two years or more, it's definitely worth processing it that way. ChrisA