Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #104137
| From | "Sven R. Kunze" <srkunze@mail.de> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | even faster heaps |
| Date | 2016-03-06 14:59 +0100 |
| Message-ID | <mailman.242.1457272796.20602.python-list@python.org> (permalink) |
Hi python-list, hi Srinivas, I managed to implement the mark&sweep approach for fast removal from heaps. This way, I got three pleasant results: 1) a substantial speed up! 2) an improved testsuite 3) discovery and fixing of several bugs @Srinivas I would be honored if you could have a look at the implementation: https://github.com/srkunze/xheap . After all, it was your idea. I only perform the sweeping step during pop and remove with the condition of yours. :) Using the original xheap benchmark <http://srkunze.blogspot.de/2016/02/the-xheap-benchmark.html>, I could see huge speedups: from 50x/25x down to 3x/2x compared to heapq. That's a massive improvement. I will publish an update soon. Best, Sven
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
even faster heaps "Sven R. Kunze" <srkunze@mail.de> - 2016-03-06 14:59 +0100
csiph-web