arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.10659cs.PL
收藏

无脊柱遍历用于布局失效

Spineless Traversal for Layout Invalidation

University of Utah(犹他大学);Tongji University(同济大学)

Marisa Kirisame, Tiezhi Wang, Pavel Panchekha

AI总结:

本文提出Spineless Traversal,一种通过缓存友好的优先队列避免访问辅助节点、减少缓存未命中的增量布局算法,在延迟关键交互上平均加速1.80倍。

摘要:

延迟是Chrome、Safari和Firefox等Web渲染引擎的主要关注点。这些引擎通过使用增量布局算法来减少延迟,当用户与页面交互时,该算法会重绘页面。在这种算法中,帧间变化的元素被标记为脏元素,并且仅处理这些元素以绘制下一帧,从而显著减少延迟。然而,标准的增量布局算法必须搜索页面中的脏元素,在此过程中会访问辅助元素。这些辅助元素增加了缓存未命中和停顿周期,并占据了所有布局延迟的相当大一部分。我们引入了一种新的、更快的增量布局算法,称为Spineless Traversal。Spineless Traversal使用一种缓存更友好的优先队列算法,避免访问辅助节点,从而减少缓存流量和停顿。这导致在最延迟关键的交互(如悬停、键入和动画)中实现显著的加速。此外,得益于众多低级优化,Spineless Traversal在整个增量布局工作负载范围内都具有竞争力。在2216个基准测试中,Spineless Traversal在83.0%的基准上比标准方法更快,平均加速1.80倍,集中在最延迟关键的交互上。

英文摘要:

Latency is a major concern for web rendering engines like those in Chrome, Safari, and Firefox. These engines reduce latency by using an incremental layout algorithm to redraw the page when the user interacts with it. In such an algorithm, elements that change frame-to-frame are marked dirty, and only those elements are processed to draw the next frame, dramatically reducing latency. However, the standard incremental layout algorithm must search the page for dirty elements, accessing auxiliary elements in the process. These auxiliary elements add cache misses and stalled cycles, and are responsible for a sizable fraction of all layout latency. We introduce a new, faster incremental layout algorithm called Spineless Traversal. Spineless Traversal uses a cache-friendlier priority queue algorithm that avoids accessing auxiliary nodes and thus reduces cache traffic and stalls. This leads to dramatic speedups on the most latency-critical interactions such as hovering, typing, and animation. Moreover, thanks to numerous low-level optimizations, Spineless Traversal is competitive across the whole spectrum of incremental layout workloads. Spineless Traversal is faster than the standard approach on 83.0% of 2216 benchmarks, with a mean speedup of 1.80x concentrated in the most latency-critical interactions.

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

↑