3 ms·
Cache-optimizing a priority queue
- raymondh 11y agoOn 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/_heapqmodule.c#l272 https://hg.python.org/cpython/file/6fd69aeb8a3b/Modules/_hea...
- sriram_malhar 11y agoThere 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 https://en.wikipedia.org/wiki/Van_Emde_Boas_tree
- adamzubi 11y agohttp://googler700.blogspot.com/ http://googler700.blogspot.com/