Hacker GitHub

← All repos

plasma-umass/Mesh

View on GitHub ↗ ★ 1,890 C++

A memory allocator that automatically reduces the memory footprint of C/C++ applications.

16 mentions on Hacker News by 12 people: 5 stories, 11 comments · first 2019-02-17 · latest 2026-02-03

Mentions per year 16 mentions · busiest year 2019 (5)
20082026
  1. ▲ 6
    Mesh: A compacting memory allocator for C/C++
    story by fanf2 · 2026-02-03 · 0 comments
  2. For anyone following the discussion: Mesh ( https://github.com/plasma-umass/mesh ) is a seriously interesting read.
  3. …Firefox is less multithreaded than it could be or what.) [1] https://www.sqlite.org/malloc.html [2] https://github.com/plasma-umass/mesh
  4. …hacks, have a look at this memory management 'thing' that doesn't move, but manages to compact: https://github.com/plasma-umass/Mesh
  5. See https://github.com/plasma-umass/Mesh for the code and a link to the paper.
  6. …you are at it. But: you are in for a treat, someone implemented compaction for malloc/free. See https://github.com/plasma-umass/Mesh They use virtual memory machinery as the necessary indirection to implement compaction, with neither…
  7. …16KB and RAM is moderately-to-very expensive. It might be interesting to try something like Mesh ( https://github.com/plasma-umass/Mesh ) to share pages.
  8. You can do interesting things by replacing malloc, like this compacting allocator: https://github.com/plasma-umass/Mesh
    comment by OnlyOneCannolo · 2020-10-14 · in Custom Allocators Demystified
  9. ▲ 4
    Mesh: A compacting memory allocator for C/C++
    story by fanf2 · 2020-08-22 · 0 comments
  10. This is awesome. Thanks. I found libmesh which looks very interesting: https://github.com/plasma-umass/Mesh
    comment by vsundar · 2020-04-06 · in Ask HN: Must Read from ACM Library?
  11. …the Mesh allocator which does this and still manages to expose a conventional malloc interface. https://github.com/plasma-umass/Mesh
    comment by chrisseaton · 2020-03-05 · in Glibc malloc inefficiency (2016)
  12. ▲ 3
    Mesh: Compacting Memory Management for C/C++
    story by smlacy · 2019-09-16 · 0 comments
  13. ▲ 3
    Mesh: Compacting Memory Management for C/C++
    story by Bootvis · 2019-09-14 · 0 comments
  14. ▲ 2
    Mesh: Allocator that automatically reduces memory footprint of C/C++ apps
    story by eatonphil · 2019-03-07 · 0 comments
  15. Source code is available here in case anyone's interested: https://github.com/plasma-umass/Mesh
  16. …used here is a pretty cool implementation of this. Here’s the implementation, it looks like: https://github.com/plasma-umass/mesh