降低内存消耗和提高执行时间性能的自适应即时值类优化
Adaptive Just-in-time Value Class Optimization for Lowering Memory Consumption and Improving Execution Time Performance
摘要:
值类的性能高度依赖于它们在虚拟机中的表示方式。值类实例是不可变的,没有标识,只能引用其他值对象或原始值,因为它们应该非常轻量级和快速,所以仔细优化它们很重要。在本文中,我们提出了一种技术来检测和压缩值类使用的常见模式,以提高内存使用率和性能。该技术识别频繁值对象引用的模式,并为它们引入缩写形式。这允许在内联内存表示中存储多个相互引用的值对象,减少了元数据和对象引用引起的开销。应用到一个小的原型和实现的Racket语言,我们发现改进的内存使用和执行时间的几个微基准。
英文摘要:
The performance of value classes is highly dependent on how they are represented in the virtual machine. Value class instances are immutable, have no identity, and can only refer to other value objects or primitive values and since they should be very lightweight and fast, it is important to optimize them carefully. In this paper we present a technique to detect and compress common patterns of value class usage to improve memory usage and performance. The technique identifies patterns of frequent value object references and introduces abbreviated forms for them. This allows to store multiple inter-referenced value objects in an inlined memory representation, reducing the overhead stemming from meta-data and object references. Applied to a small prototype and an implementation of the Racket language, we found improvements in memory usage and execution time for several micro-benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。