Reducing the cost of object boxing

被引:0
|
作者
Owen, T [1 ]
Watson, D [1 ]
机构
[1] Univ Sussex, Dept Informat, Brighton, E Sussex, England
来源
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Language implementations that use a uniform pointer representation for generic datatypes typically apply boxing operations to convert non-uniform objects into the required form. The cost of this boxing process impacts upon the performance of programs that make heavy use of genericity with non-uniform data such as integers and other primitive value types. We show that the overhead of boxing objects into heap storage can be significantly reduced by taking a lazy approach: allowing pointers to stack-allocated objects that are only copied to the heap when necessary. Delaying the boxing of objects avoids unnecessary heap allocation, and results in speedups of around 25% for a range of test programs.
引用
收藏
页码:202 / 216
页数:15
相关论文
共 50 条
  • [1] Communication cost reducing in data source network for moving object location
    Nakov, Ognian
    Petrova, Dessislava
    [J]. WSEAS Transactions on Computers, 2007, 6 (09): : 1077 - 1081
  • [2] REDUCING COST
    不详
    [J]. NATURE, 1966, 212 (5058) : 111 - &
  • [3] COST PLANNING AS A MEANS OF REDUCING COSTS - COST MONITORING AND COST REDUCING MEASURES IN THEORY AND PRACTICE
    KUNZ, BR
    [J]. UNTERNEHMUNG-SCHWEIZERISCHE ZEITSCHRIFT FUR BETRIEBSWIRTSCHAFT, 1982, 36 (02): : 167 - 182
  • [4] THE COST OF OBJECT EDUCATION
    DSOUZA, D
    [J]. JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1994, 7 (03): : 62 - 64
  • [5] REDUCING THE COST OF OWNERSHIP
    PARRISH, R
    [J]. BUSINESS AND COMMERCIAL AVIATION, 1983, 53 (01): : 86 - &
  • [6] REDUCING THE COST OF BUFFING
    DEWAR, JP
    [J]. PLATING AND SURFACE FINISHING, 1983, 70 (07): : 18 - 18
  • [7] REDUCING COST OF COMPUTING
    LEIBERT, A
    [J]. DATA PROCESSING, 1973, 15 (06): : 390 - 393
  • [8] Reducing the cost of anaesthesia
    Bucx, M. J. L.
    Landman, J. J.
    van Onzenoort, H. A. W.
    Kox, M.
    Scheffer, G. J.
    [J]. ANAESTHESIA, 2014, 69 (05) : 525 - 526
  • [9] Reducing cost of overhead
    Brock, RD
    [J]. AMERICAN HELICOPTER SOCIETY - 53RD ANNUAL FORUM PROCEEDINGS, VOLS 1 AND 2, 1997, : 645 - 649
  • [10] REDUCING THE COST OF PAPERWORK
    BUCHHOLZ, R
    [J]. BUSINESS HORIZONS, 1980, 23 (01) : 82 - 89