{"id":16840803,"url":"https://github.com/emeryberger/heap-layers","last_synced_at":"2025-04-12T00:00:11.400Z","repository":{"id":1747561,"uuid":"4703541","full_name":"emeryberger/Heap-Layers","owner":"emeryberger","description":"Heap Layers: An Extensible Memory Allocation Infrastructure","archived":false,"fork":false,"pushed_at":"2025-04-10T18:22:03.000Z","size":1002,"stargazers_count":393,"open_issues_count":2,"forks_count":59,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-11T23:59:57.829Z","etag":null,"topics":["malloc","memory-allocation","memory-management","memory-manager"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emeryberger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-06-18T16:55:17.000Z","updated_at":"2025-04-10T18:22:07.000Z","dependencies_parsed_at":"2024-05-04T18:23:23.878Z","dependency_job_id":"8d0d7ac7-8b39-491d-9944-dcc372f8a932","html_url":"https://github.com/emeryberger/Heap-Layers","commit_stats":{"total_commits":419,"total_committers":15,"mean_commits":"27.933333333333334","dds":"0.24105011933174225","last_synced_commit":"220418d9c8d4d489fb6e63feb5d654282c05605a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emeryberger%2FHeap-Layers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emeryberger%2FHeap-Layers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emeryberger%2FHeap-Layers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emeryberger%2FHeap-Layers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emeryberger","download_url":"https://codeload.github.com/emeryberger/Heap-Layers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497805,"owners_count":21113984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["malloc","memory-allocation","memory-management","memory-manager"],"created_at":"2024-10-13T12:38:10.499Z","updated_at":"2025-04-12T00:00:11.351Z","avatar_url":"https://github.com/emeryberger.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[Heap Layers: An Extensible Memory Allocation Infrastructure](http://www.heaplayers.org)\n-----------------------------------------------------------\n\nCopyright (C) 2000 - 2021 by [Emery Berger](http://www.emeryberger.com)\n\nHeap Layers is distributed under the terms of the Apache 2.0 license.\n\n## Introduction ##\n\nHeap Layers provides a flexible infrastructure for composing\nhigh-performance memory allocators out of C++ _layers_. Heap Layers\nmakes it easy to write high-quality custom and general-purpose\nmemory allocators. Heap Layers has been used successfully to build\na number of high-performance allocators, including [Hoard](http://www.hoard.org) and [DieHard](http://www.diehard-software.org/).\n\n## Using Heap Layers ##\n\nFor an introduction to Heap Layers, read the article [Policy-Based\nMemory Allocation](https://github.com/emeryberger/Heap-Layers/raw/master/cuj-2005-12.pdf), by Andrei\nAlexandrescu and Emery Berger. It's a good overview. See also [\"Memory Allocation: Either Love It or Hate It\n(or just think it’s okay)\"](https://accu.org/content/conf2008/Alexandrescu-memory-allocation.screen.pdf), a talk by Andrei.\n\nHeap Layers contains a number of ready-made heap components that can\nbe plugged together with minimal effort, and the result is often\nfaster than hand-built allocators. The PLDI 2001 paper [Composing\nHigh-Performance Memory\nAllocators](http://www.cs.umass.edu/~emery/pubs/berger-pldi2001.pdf)\nhas plenty of examples.\n\n## Performance ##\n\nHeap Layers can substantially outperform its only real competitor,\nthe Vmalloc package from AT\u0026T. The OOPSLA 2002 paper [Reconsidering\nCustom Memory\nAllocation](http://www.cs.umass.edu/~emery/pubs/berger-oopsla2002.pdf)\npaper has more details.\n\nNot only is Heap Layers much higher level and simpler to use, but\nits use of templates also improves performance. Heap Layers both\neliminates the function call overhead imposed by Vmalloc layers and\nyields higher quality code by exposing more optimization\nopportunities.\n\n## Citation ##\n\nTo reference Heap Layers in an academic paper, please cite as follows:\n\n```\n@inproceedings{DBLP:conf/pldi/BergerZM01,\n  author    = {Emery D. Berger and\n               Benjamin G. Zorn and\n               Kathryn S. McKinley},\n  title     = {Composing High-Performance Memory Allocators},\n  booktitle = {Proceedings of the 2001 {ACM} {SIGPLAN} Conference on Programming\n               Language Design and Implementation (PLDI), Snowbird, Utah, USA, June\n               20-22, 2001},\n  pages     = {114--124},\n  year      = {2001},\n  crossref  = {DBLP:conf/pldi/2001},\n  url       = {https://doi.org/10.1145/378795.378821},\n  doi       = {10.1145/378795.378821},\n  timestamp = {Wed, 14 Nov 2018 10:54:59 +0100},\n  biburl    = {https://dblp.org/rec/bib/conf/pldi/BergerZM01},\n  bibsource = {dblp computer science bibliography, https://dblp.org}\n}\n\n@proceedings{DBLP:conf/pldi/2001,\n  editor    = {Michael Burke and\n               Mary Lou Soffa},\n  title     = {Proceedings of the 2001 {ACM} {SIGPLAN} Conference on Programming\n               Language Design and Implementation (PLDI), Snowbird, Utah, USA, June\n               20-22, 2001},\n  publisher = {{ACM}},\n  year      = {2001},\n  url       = {http://dl.acm.org/citation.cfm?id=378795},\n  isbn      = {1-58113-414-2},\n  timestamp = {Mon, 21 May 2012 16:19:53 +0200},\n  biburl    = {https://dblp.org/rec/bib/conf/pldi/2001},\n  bibsource = {dblp computer science bibliography, https://dblp.org}\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femeryberger%2Fheap-layers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femeryberger%2Fheap-layers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femeryberger%2Fheap-layers/lists"}