Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #102323
| Path | csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | "Sven R. Kunze" <srkunze@mail.de> |
| Newsgroups | comp.lang.python |
| Subject | Heap Implemenation |
| Date | Sat, 30 Jan 2016 23:33:36 +0100 |
| Lines | 28 |
| Message-ID | <mailman.147.1454193221.2338.python-list@python.org> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de PxYK5JcMfl6rFFSAyc86jAD9M8ZwLpPxuXY9oxILbjDA== |
| Return-Path | <srkunze@mail.de> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.085 |
| X-Spam-Evidence | '*H*': 0.84; '*S*': 0.01; 'url:pypi': 0.03; 'rewrite': 0.07; 'url:github': 0.09; 'thread': 0.10; 'heap': 0.16; 'heapq': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'header:User-Agent:1': 0.26; 'compare': 0.27; 'switch': 0.27; 'topic': 0.32; 'url:python': 0.33; 'grateful': 0.33; 'open': 0.33; 'received:10.0': 0.34; 'best,': 0.35; 'url:org': 0.36; 'to:addr :python-list': 0.36; 'received:10': 0.37; 'really': 0.37; 'feedback': 0.38; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'some': 0.40; 'your': 0.60; 'finally': 0.70; 'incredibly': 0.76; 'removal': 0.79; 'sweeping': 0.84; 'url:2016': 0.84; 'worried': 0.84; 'dare': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mail201212; t=1454193219; bh=rkfsCxJ+1AulqNN1NEjI7v+6zAomUWq7upBj7uuFbaU=; h=To:From:Subject:Date:From; b=OxQCxt4KBy2pTaGGGLa6wStRVwRvOVRI11I7m63GxI4BAjLrCs39c80D3Di1AW+iJ cuG1W9GGk9lQUIc1DRjI+m/a5B9/IuSX4IJEooQyl+bhffiopxeBaKUJKBEbeQjZie lhq1tVCi9FmggjnQ36DVMuxxKCiiG0W+B/9LuFxg= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
| X-purgate | clean |
| X-purgate | This mail is considered clean (visit http://www.eleven.de for further information) |
| X-purgate-type | clean |
| X-purgate-Ad | Categorized by eleven eXpurgate (R) http://www.eleven.de |
| X-purgate | This mail is considered clean (visit http://www.eleven.de for further information) |
| X-purgate | clean |
| X-purgate-size | 906 |
| X-purgate-ID | 154282::1454193219-00003BBD-72A10799/0/0 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| 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> |
| Xref | csiph.com comp.lang.python:102323 |
Show key headers only | View raw
Hi again, as the topic of the old thread actually was fully discussed, I dare to open a new one. I finally managed to finish my heap implementation. You can find it at https://pypi.python.org/pypi/xheap + https://github.com/srkunze/xheap. I described my motivations and design decisions at http://srkunze.blogspot.com/2016/01/fast-object-oriented-heap-implementation.html @Cem You've been worried about a C implemenation. I can assure you that I did not intend to rewrite the incredibly fast and well-tested heapq implementation. I just re-used it. ;) I would really be grateful for your feedback as you have first-hand experience with heaps. @srinivas You might want to have a look at the removal implementation. Do you think it would be wiser/faster to switch for the sweeping approach? I plan to publish some benchmarks to compare heapq and xheap. Best, Sven
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Heap Implemenation "Sven R. Kunze" <srkunze@mail.de> - 2016-01-30 23:33 +0100
csiph-web