Skip to content

Latest commit

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

jemalloc-zig

CI
Implementation of std.mem.Allocator interface that wraps Jemalloc. Works on master builds of Zig.

Example usage

Use this library as a Zig library (instructions here) and then add something like this to your root source file:

constjemalloc_zig=@import("jemalloc-zig");
constgpa=jemalloc_zig.jemalloc_allocator;
pubfnmain() !void {
constmemory=trygpa.alloc(i32, 1);
memory[0] =12;
gpa.free(memory);
}

About

Implementation of std.mem.Allocator that wraps Jemalloc.

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages