首页> 外国专利> 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.
机译:公开了用于创建常规对象的压缩版本的方法和设备。根据本发明的一个方面,一种用于创建对象的压缩版本的方法,该对象的压缩版本在基于对象的计算系统的堆结构上存储了一组数据的第一表示,包括确定何时该组的第一表示为数据适合压缩。如果数据集的第一个表示形式是可压缩的,则将其压缩以形成数据集的第二个表示形式,并在堆结构上分配内存的第二部分。存储器的第二部分基本上小于对象占用的存储器的第一部分。最后,该方法包括将数据集的第二表示写入到分配的存储器的第二部分中。在一个实施例中,该方法包括:重置标识该对象的指针以标识所分配的存储器的第二部分;以及将该对象从堆结构中移除。

著录项

  • 公开/公告号US6728852B1

    专利类型

  • 公开/公告日2004-04-27

    原文格式PDF

  • 申请/专利权人 SUN MICROSYSTEMS INC.;

    申请/专利号US20000608312

  • 发明设计人 DAVID P. STOUTAMIRE;

    申请日2000-06-30

  • 分类号G06F120/00;

  • 国家 US

  • 入库时间 2022-08-21 23:13:08

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号