arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.01631cs.DScs.IR
收藏

缓存友好的搜索树;或者,在其中一切都击败std::set

Cache-Friendly Search Trees; or, In Which Everything Beats std::set

Jeffrey Barratt, Brian Zhang

摘要:

虽然理论计算机科学中的大量工作已经进入优化数据结构的运行时间和空间使用,但是这样的工作经常忽略现代计算机的非常重要的组件:高速缓存。在这样做时,经常开发的数据结构实现了理论上良好的运行时间,但是由于大量的高速缓存未命中而在实践中很慢。在1999年,Frigo等人提出了高速缓存不经意算法的概念:一种利用高速缓存的算法,不管高速缓存的大小或结构如何。从那时起,许多作者设计了高速缓存无关算法和数据结构,用于从矩阵乘法到数组排序的问题。在这项工作中,我们专注于高速缓存不经意的搜索树,即实现一个有序的字典在一个高速缓存友好的方式。我们将首先介绍高速缓存无关数据结构的概述,特别是高速缓存无关搜索树。然后,我们给出了在现代机器上使用这些缓存无关结构的实际结果,将它们与标准std::set和其他缓存友好的字典(如B树)进行比较。

英文摘要:

While a lot of work in theoretical computer science has gone into optimizing the runtime and space usage of data structures, such work very often neglects a very important component of modern computers: the cache. In doing so, very often, data structures are developed that achieve theoretically-good runtimes but are slow in practice due to a large number of cache misses. In 1999, Frigo et al. introduced the notion of a cache-oblivious algorithm: an algorithm that uses the cache to its advantage, regardless of the size or structure of said cache. Since then, various authors have designed cache-oblivious algorithms and data structures for problems from matrix multiplication to array sorting. We focus in this work on cache-oblivious search trees; i.e. implementing an ordered dictionary in a cache-friendly manner. We will start by presenting an overview of cache-oblivious data structures, especially cache-oblivious search trees. We then give practical results using these cache-oblivious structures on modern-day machinery, comparing them to the standard std::set and other cache-friendly dictionaries such as B-trees.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑