Optimizing MATLAB through Just-In-Time Specialization

被引:0
|
作者
Chevalier-Boisvert, Maxime [1 ]
Hendren, Laurie [1 ]
Verbrugge, Clark [1 ]
机构
[1] McGill Univ, Sch Comp Sci, Montreal, PQ, Canada
来源
关键词
INFERENCE; LANGUAGE; SYSTEM;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Scientists are increasingly using dynamic programming languages like MATLAB for prototyping and implementation. Effectively compiling MATLAB raises many challenges due to the dynamic and complex nature of MATLAB types. This paper presents a new JIT-based approach which specializes and optimizes functions on-the-fly based on the current types of function arguments. A key component of our approach is a new type inference algorithm which uses the run-time argument types to infer further type and shape information, which in turn provides new optimization opportunities. These techniques are implemented in McVM, our open implementation of a MATLAB virtual machine. As this is the first paper reporting on McVM, a brief introduction to McVM is also given. We have experimented with our implementation and compared it to several other MATLAB implementations, including the Mathworks proprietary system, McVM without specialization, the Octave open-source interpreter and the Mc For static compiler. The results are quite encouraging and indicate that specialization is an effective optimization McVM with specialization outperforms Octave by a large margin and also sometimes outperforms the Mathworks implementation.
引用
收藏
页码:46 / 65
页数:20
相关论文
共 50 条
  • [41] Generation of Efficient Obfuscated Code through Just-in-Time Compilation
    Hataba, Muhammad
    El-Mahdy, Ahmed
    Ueda, Kazunori
    [J]. IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2019, E102D (03) : 645 - 649
  • [42] Just-in-time monitoring of project activities through temporal reasoning
    Garza, Sara E.
    Aguirre, Jose Luis
    [J]. MICAI 2007: ADVANCES IN ARTIFICIAL INTELLIGENCE, 2007, 4827 : 381 - 391
  • [43] Enabling a green just-in-time navigation through stakeholder collaboration
    Jordi Arjona Aroca
    José Andrés Giménez Maldonado
    Gabriel Ferrús Clari
    Nuria Alonso i García
    Lucía Calabria
    Jorge Lara
    [J]. European Transport Research Review, 2020, 12
  • [44] Enabling a green just-in-time navigation through stakeholder collaboration
    Arjona Aroca, Jordi
    Gimenez Maldonado, Jose Andres
    Ferrus Clari, Gabriel
    Alonso i Garcia, Nuria
    Calabria, Lucia
    Lara, Jorge
    [J]. EUROPEAN TRANSPORT RESEARCH REVIEW, 2020, 12 (01)
  • [45] Delivering just-in-time performance: applying just-in-time logic to rail and intermodal operations
    Foyer, P
    Mortimer, PN
    [J]. DEVELOPING AND GROWING THE BUSINESS - FREIGHT: INTERNATIONAL RAILTECH CONGRESS '98, 1998, 1998 (18): : 35 - 41
  • [46] HAVING A HARD TIME WITH JUST-IN-TIME
    HUTCHINS, D
    [J]. FORTUNE, 1986, 113 (12) : 64 - 66
  • [47] Using Performance Event Profiles to Deduce an Execution Model of MATLAB with Just-In-Time Compilation
    Kiepas, Patryk
    Ancourt, Corinne
    Tadonki, Claude
    Kozlak, Jaroslaw
    [J]. LANGUAGES AND COMPILERS FOR PARALLEL COMPUTING, LCPC 2019, 2021, 11998 : 74 - 88
  • [48] FROM JUST-IN-CASE TO JUST-IN-TIME
    DOUGHERTY, JR
    [J]. BUSINESS SOFTWARE REVIEW, 1988, 7 (05): : 71 - &
  • [49] Just-in-time is not just for manufacturing: a service perspective
    Canel, C
    Rosen, D
    Anderson, EA
    [J]. INDUSTRIAL MANAGEMENT & DATA SYSTEMS, 2000, 100 (1-2) : 51 - 60
  • [50] A Just-in-Time Customizable Processor
    Chen, Liang
    Tarango, Joseph
    Mitra, Tulika
    Brisk, Philip
    [J]. 2013 IEEE/ACM INTERNATIONAL CONFERENCE ON COMPUTER-AIDED DESIGN (ICCAD), 2013, : 524 - 531