Rust allocator

Open-source Rust projects categorized as allocator

Top 10 Rust allocator Projects

  • wee_alloc

    The Wasm-Enabled, Elfin Allocator

  • Project mention: Rust + WASM + Typescript [+ React] | /r/rust | 2023-07-18

    As a note, you might find some references to use wee_alloc, but it has been unmaintained for some time and shouldn't be used. I'm using the default allocator with the wasm32-wasi target and it works fine, but I don't know if that works with wasm32-unknown-unknown too; if not there's lol_alloc.

  • book

    Writing Interpreters in Rust: a Guide (by rust-hosted-langs)

  • Project mention: I'm wanting to write my first compiler, but getting a little bit mixed up in general. | /r/Compilers | 2023-06-24

    Kind of an interpreter but it does compile to bytecode and is written in rust https://github.com/rust-hosted-langs/book I thought it was a great tutorial, both for learning rust, and about compilers

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • mimalloc_rust

    A Rust wrapper over Microsoft's MiMalloc memory allocator

  • Project mention: Rust std:fs slower than Python | news.ycombinator.com | 2023-11-29

    > I wish Rust would switch to mimalloc or the latest tcmalloc (not the one in gperftools).

    That's nonsensical. Rust uses the system allocators for compatibility, not because they're good (they were not when Rust switched away from jemalloc, and they aren't now).

    If you want to use mimalloc in your rust programs, you can just set it as global allocator, that takes all of three lines: https://github.com/purpleprotocol/mimalloc_rust#usage

  • talc

    A fast and flexible allocator for no_std and WebAssembly

  • Project mention: Talc – A fast and flexible allocator for no_std and WebAssembly | news.ycombinator.com | 2024-02-28

    Added a new issue [1] to add TLSF to the benchmarks as it's likely going to be faster in a single-threaded environment according to the rlsf crate [2].

    [1] https://github.com/SFBdragon/talc/issues/26

  • embedded-alloc

    A heap allocator for embedded systems

  • gpu-alloc

    Implementation agnostic memory allocator for Vulkan-like APIs

  • acid_alloc

    Bare-metal allocators.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • tcmalloc-rs

    A drop-in GlobalAlloc implementation using tcmalloc from gperftools.

  • Project mention: Bump Allocation: Up or Down? | news.ycombinator.com | 2024-03-25
  • simple-chunk-allocator

    A simple allocator written in Rust that manages memory in fixed-size chunks.

  • min-no-std

    A minimal setup for a no_std library with wee_alloc as global allocator

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Rust allocator related posts

  • Talc – A fast and flexible allocator for no_std and WebAssembly

    4 projects | news.ycombinator.com | 28 Feb 2024
  • Rust + WASM + Typescript [+ React]

    7 projects | /r/rust | 18 Jul 2023
  • Spotting and Avoiding Heap Fragmentation in Rust Apps

    4 projects | /r/rust | 4 Apr 2023
  • Tips on scaling a monolithic Rust web server?

    4 projects | /r/rust | 26 Dec 2022
  • Junior Dev here -- How are we setting up Rust, WASM, and webpack?

    4 projects | /r/rust | 28 Sep 2022
  • Bizarre memory leak caused by tokio runtime

    4 projects | /r/rust | 8 Sep 2022
  • Don't use wee_alloc in production code targeting WebAssembly.

    2 projects | /r/rust | 30 Aug 2022
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 30 Apr 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Index

What are some of the best open-source allocator projects in Rust? This list will help you:

Project Stars
1 wee_alloc 632
2 book 466
3 mimalloc_rust 441
4 talc 381
5 embedded-alloc 265
6 gpu-alloc 85
7 acid_alloc 76
8 tcmalloc-rs 16
9 simple-chunk-allocator 10
10 min-no-std 0

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