Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'yet.': 0.04; 'pypy': 0.07; 'cc:addr:python-list': 0.11; 'random': 0.14; 'cc:name:python list': 0.16; 'containers': 0.16; 'excluded': 0.16; 'sequential': 0.16; 'wrote:': 0.18; '(but': 0.19; 'cc:addr:python.org': 0.22; 'replace': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'downloaded': 0.26; 'somewhere': 0.26; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'probably': 0.32; 'run': 0.32; 'link.': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; "didn't": 0.36; 'url:org': 0.36; 'list': 0.37; 'performance': 0.37; 'being': 0.38; 'pm,': 0.38; 'become': 0.64; 'between': 0.67; 'mar': 0.68; 'results': 0.69; 'comparative': 0.84; 'short,': 0.84 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 :cc:content-type; bh=kwjBgqtU4ERKxr9xc25pdMG5OMPOjr2+IRCgAw9Ti9g=; b=GlHLT3nhB4JAAkEoGvNt+9NouNrJI9vpTY3EujP50Mps8ygsZ2KTqlHQC/Z1+wI0H5 /ghTRav8W+PCQY14yTyYDc54bKTFUNgXl6KsoileM9JyqzlWpxZcAoG3JumsPAA5MvJE EL2uIAFzUw4Od2KH6dkcicRRSZts0juRdJvOXm6iRErw9isKwtjCZHl7RkSvr7n3SXMk tbAU7MTmSZXN3n3cXHcqeqC7aA83FFID8JiLQH5kO1bOuTYzjd8cI7jLp4rWI6QzPFys phsqrZirbw26ZU/8OHbFBLJmrpBMFcnNdph4L13p6/CTbQI1h6QAdhvJuF8GWtrxuFI6 38QA== MIME-Version: 1.0 X-Received: by 10.236.221.167 with SMTP id r37mr5409977yhp.85.1395170769883; Tue, 18 Mar 2014 12:26:09 -0700 (PDT) In-Reply-To: <87mwgoqy4k.fsf@elektro.pacujo.net> References: <87eh2d3x8h.fsf_-_@elektro.pacujo.net> <87mwgoqy4k.fsf@elektro.pacujo.net> Date: Tue, 18 Mar 2014 12:26:09 -0700 Subject: Re: Balanced trees From: Dan Stromberg To: Marko Rauhamaa Content-Type: text/plain; charset=ISO-8859-1 Cc: Python List 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395170778 news.xs4all.nl 2849 [2001:888:2000:d::a6]:48481 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68513 On Mon, Mar 17, 2014 at 3:05 PM, Marko Rauhamaa wrote: > Joshua Landau : > >> The thing we really need is for the blist containers to become stdlib >> (but not to replace the current list implementation). > > Very interesting. Downloaded blist but didn't compile it yet. It *could* > be the missing link. > > I would *love* to see some comparative performance results between > blist.sorteddict and an AVL tree. I added blist.sorteddict and removed (temporarily) Pypy and Jython. The results are at http://stromberg.dnsalias.org/~strombrg/python-tree-and-heap-comparison/2014-03/ In short, blist.sorteddict didn't do that well, despite being in C. In the random workloads, blist.sorteddict was dead last. In the sequential workloads blist.sorteddict fell somewhere in the middle. I excluded Pypy and Jython because blist.sorteddict probably doesn't run on them. HTH