skip to main content
research-article
Free Access

Leaking Space: Eliminating memory hogs

Published:01 September 2013Publication History
Skip Abstract Section

Abstract

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.

References

  1. Augustsson, L. 2011. Pragmatic Haskell. Presentation at the CUFP (Commercial Users of Functional Programming) Conference; http://www.youtube.com/watch?v=hgOzYZDrXL0.Google ScholarGoogle Scholar
  2. Augustsson, L. 2011. More points for lazy evaluation. Things that Amuse Me; http://augustss.blogspot.co.uk/2011/05/more-points-for-lazy-evaluation-in.html.Google ScholarGoogle Scholar
  3. Glasgow Haskell Compiler Team. 2013. The Glorious Glasgow Haskell Compilation System User's Guide, Version 7.6.3; http://www.haskell.org/ghc/docs/latest/html/users_guide/index.html.Google ScholarGoogle Scholar
  4. Hofmann, M., Jost, S. 2003. Static prediction of heap space usage for first-order functional programs. Proceedings of the 30th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL): 185-197. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Hughes, J. 1983. The design and implementation of programming languages. Ph.D. thesis. Oxford University.Google ScholarGoogle Scholar
  6. Hughes, J. 1989. Why functional programming matters. Computer Journal 32(2): 98-107. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Liu, H., Hudak, P. 2007. Plugging a space leak with an arrow. Electronic Notes in Theoretical Computer Science 193:29-45. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Rogers, C. 2012. Web Audio API; http://www.w3.org/TR/2012/WD-webaudio-20120802/.Google ScholarGoogle Scholar
  9. Röjemo, N., Runciman, C. 1996. Lag, drag, void and use heap profiling and space-efficient compilation revisited. Proceedings of the 1st ACM SIGPLAN International Conference on Functional Programming (ICFP):34-41. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Wadler, P. 1987. Fixing some space leaks with a garbage collector. Software: Practice and Experience 17(9): 595-608. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Yang, E. 2013. hp/D3.js; http://heap.ezyang.com/.Google ScholarGoogle Scholar

Index Terms

  1. Leaking Space: Eliminating memory hogs
        Index terms have been assigned to the content through auto-classification.

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in

        Full Access

        • Published in

          cover image Queue
          Queue  Volume 11, Issue 9
          Quality Assurance
          September 2013
          34 pages
          ISSN:1542-7730
          EISSN:1542-7749
          DOI:10.1145/2538031
          Issue’s Table of Contents

          Copyright © 2013 ACM

          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 1 September 2013

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • research-article
          • Popular
          • Refereed

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader

        HTML Format

        View this article in HTML Format .

        View HTML Format