{"title":"Space and Time-Efficient Hashing of Garbage-Collected Objects","authors":"Ole Agesen","doi":"10.1002/(SICI)1096-9942(1999)5:2<119::AID-TAPO5>3.3.CO;2-H","DOIUrl":null,"url":null,"abstract":"The hashCode() method found in the JavaTM programming language, and similar methods in other languages, map an arbitrary object to an integer value that is constant for the lifetime of the object. We review existing implementations of the hash operation, specifying the kinds of memory systems for which they work. Then we propose a new implementation of hashing for the hardest case: memory systems with compaction and direct pointers. Our proposal uses just two bits of space per object for the (majority of) objects that are never hashed. © 1999 John Wiley & Sons, Inc.","PeriodicalId":293061,"journal":{"name":"Theory Pract. Object Syst.","volume":"54 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1999-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"7","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Theory Pract. Object Syst.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1002/(SICI)1096-9942(1999)5:2<119::AID-TAPO5>3.3.CO;2-H","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 7
垃圾收集对象的空间和时间效率哈希
java编程语言中的hashCode()方法以及其他语言中的类似方法将任意对象映射为一个整数值,该整数值在对象的生命周期内是常量。我们回顾哈希操作的现有实现,指定它们工作的内存系统类型。然后,我们提出了一种新的哈希实现,用于最困难的情况:具有压缩和直接指针的内存系统。我们的建议为每个对象只使用两位空间,用于(大多数)从未散列的对象。©1999 John Wiley & Sons, Inc
本文章由计算机程序翻译,如有差异,请以英文原文为准。