Zigistry
  • Packages
  • Programs
  • Statistics
  • Apps
  • API
  • About
  • Help
  • Star
© 2024Rohan Vashisht
  • About
  • Help
  • GitHub
misshodmimalloc.zig

theseyan/mimalloc.zig

MIT

Simple Zig Allocator interface over mimalloc.

0000
3
mimalloc,zig,zig-package
 
build.zig.zonbuild.zig
View package on GitHub

mimalloc.zig

A simple implementation of Zig's std.mem.Allocator interface over the excellent mimalloc by Microsoft.

Usage

const mimalloc = @import("mimalloc").Allocator{};
const allocator = mimalloc.allocator();

// Use `allocator` here...

Tests

Run the tests:

zig build test
macos_sdk
mimalloc_c