首页    期刊浏览 2024年11月05日 星期二
登录注册

文章基本信息

  • 标题:Good Predictions Are Worth a Few Comparisons
  • 本地全文:下载
  • 作者:Nicolas Auger ; Cyril Nicaud ; Carine Pivoteau
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2016
  • 卷号:47
  • 页码:12:1-12:14
  • DOI:10.4230/LIPIcs.STACS.2016.12
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:Most modern processors are heavily parallelized and use predictors to guess the outcome of conditional branches, in order to avoid costly stalls in their pipelines. We propose predictor-friendly versions of two classical algorithms: exponentiation by squaring and binary search in a sorted array. These variants result in less mispredictions on average, at the cost of an increased number of operations. These theoretical results are supported by experimentations that show that our algorithms perform significantly better than the standard ones, for primitive data types.
  • 关键词:branch misses; binary search; exponentiation by squaring; Markov chains
国家哲学社会科学文献中心版权所有