首页    期刊浏览 2024年12月05日 星期四
登录注册

文章基本信息

  • 标题:Eliminating memory hogs
  • 本地全文:下载
  • 作者:Neil Mitchell
  • 期刊名称:ACM Queue (Online): tomorrow's computing today
  • 电子版ISSN:1542-7749
  • 出版年度:2013
  • 卷号:11
  • 期号:9
  • 语种:English
  • 出版社:Association for Computing Machinery
  • 摘要:Neil Mitchell A space leak occurs when a computer program uses more memory than necessary. In contrast to memory leaks, where the leaked memory is never released, the memory consumed by a space leak is released, but later than expected. This article presents example space leaks and how to spot and eliminate them. Real-world Space Leaks Let’s first consider two “real-world” space leaks. Xena, the xylophone enthusiast, buys a 26-volume printed encyclopedia, but she only wants to read the article on xylophones. The encyclopedia occupies a lot of space on her bookshelf. Xena could throw away all but the X volume, reducing the shelf requirements, or she could cut out the xylophone article, leaving only a single piece of paper.
国家哲学社会科学文献中心版权所有