Hacker News new | past | comments | ask | show | jobs | submit login
Cache-optimizing a priority queue (playfulprogramming.blogspot.com)
69 points by ingve on Aug 3, 2015 | hide | past | favorite | 2 comments



There is a well-known memory layout technique for a cache-oblivious tree called van Emde Boas layout.

https://en.wikipedia.org/wiki/Van_Emde_Boas_tree


On a related note, the source code for Python demonstrates a practical way to cache-optimize the heapify() operation for the garden-variety heap implementation of a priority queue:

https://hg.python.org/cpython/file/6fd69aeb8a3b/Modules/_hea...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: