Spotting and Avoiding Heap Fragmentation in Rust Apps

This page summarizes the projects mentioned and recommended in the original post on /r/rust

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. Mesh

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

    I'm not sure if it's widely used, but Mesh is a C/C++ library that can recover from memory fragmentation. The YouTube video in the README is a great watch.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. rust-gc

    Simple tracing (mark and sweep) garbage collector for Rust

    One can have a GC as a library, https://github.com/Manishearth/rust-gc

  4. shifgrethor

    garbage collection

  5. json

    Strongly typed JSON library for Rust (by serde-rs)

    Don't do that if you care about memory usage. In your toy program, I wouldn't be surprised if memory usage was a lot better if you used Box instead. (even if it doesn't look like it, you can handle almost all the use cases of serde_json::Value with it, often not much less convenient)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • REST API in RUST with ntex

    5 projects | dev.to | 3 Sep 2025
  • Is Rust a good fit for business apps?

    4 projects | news.ycombinator.com | 13 Mar 2025
  • Scan HTML even faster with SIMD instructions (C++ and C#)

    4 projects | news.ycombinator.com | 20 Jul 2024
  • What even is a JSON number?

    4 projects | news.ycombinator.com | 1 Apr 2024
  • I pre-released my project "json-responder" written in Rust

    11 projects | dev.to | 21 Jan 2024

Did you know that Rust is
the 3rd most popular programming language
based on number of references?