计算机科学 > 数据结构与算法
[提交于 2019年11月5日]
标题:Clustering case statements for indirect branch predictors
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We present an O(nlogn) algorithm to compile a switch statement into jump tables. To generate jump tables that can be efficiently predicted by current hardware branch predictors, we added an upper bound on the number of entries for each table. This modification of the previously best known algorithm reduces the complexity from O(n^2) to O(nlogn).
提交历史
来自:Aditya Kumar[v1] 2019年11月5日 星期二 00:00:00 UTC