首页>
外国专利>
Method and apparatus for reducing heap size through adaptive object representation
Method and apparatus for reducing heap size through adaptive object representation
展开▼
机译:通过自适应对象表示减小堆大小的方法和装置
展开▼
页面导航
摘要
著录项
相似文献
摘要
Methods and apparatus for creating compressed versions of regular objects are disclosed. According to one aspect of the present invention, a method for creating a compressed version of an object that stores a first representation of a set of data on a heap structure of an object-based computing system includes determining when the first representation of the set of data is suitable for compression. If the first representation of the set of data is compressible, it is compressed to form a second representation of the set of data, and a second portion of memory is allocated on the heap structure. The second portion of memory is substantially smaller than a first portion of memory occupied by the object. Finally, the method includes writing the second representation of the set of data into the allocated second portion of memory. In one embodiment, the method includes resetting a pointer that identifies the object to identify the allocated second portion of memory, and removing the object from the heap structure.
展开▼