首页    期刊浏览 2024年10月06日 星期日
登录注册

文章基本信息

  • 标题:How to Select Superinstructions for Ruby
  • 本地全文:下载
  • 作者:Salikh Zakirov ; Shigeru Chiba ; Etsuya Shibayama
  • 期刊名称:Information and Media Technologies
  • 电子版ISSN:1881-0896
  • 出版年度:2010
  • 卷号:5
  • 期号:2
  • 页码:519-526
  • DOI:10.11185/imt.5.519
  • 出版社:Information and Media Technologies Editorial Board
  • 摘要:Superinstruction is well-known techniques of improving performance of interpreters. Superinstructions eliminate jumps between VM operations (interpreter dispatch) and enable more optimizations in merged code. In past, processors with simple BTB-based branch predictors had high misprediction rate when executing interpreted code, resulting in high overhead of interpreter dispatch, so superinstructions were used to reduce it. However, this assumption is incorrect for Ruby on current hardware. Accordingly, using superinstructions for eliminating jump instructions only marginally improves performance. In this paper, we consider applying superinstructions differently to improve performance of floating point computation. We note that high percentage of objects allocated during numeric computation are boxed floating point values, meanwhile garbage collection takes significant part of the execution time. Using superinstructions composed from pairs of arithmetic operations we were able to reduce allocation of boxed floats by up to 36%, and obtain improvement in performance of up to 22%.
国家哲学社会科学文献中心版权所有