diff options
Diffstat (limited to 'src/global.zig')
-rw-r--r-- | src/global.zig | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/global.zig b/src/global.zig index eb385537d..6378bb2ba 100644 --- a/src/global.zig +++ b/src/global.zig @@ -3,20 +3,16 @@ pub const Environment = @import("env.zig"); pub const use_mimalloc = !Environment.isTest; -/// For sizes less than 8 MB, allocate via mimalloc pub const default_allocator: std.mem.Allocator = if (!use_mimalloc) std.heap.c_allocator else @import("./memory_allocator.zig").c_allocator; -/// For sizes larger than 8 MB, allocate via mmap() instead of malloc(). pub const huge_allocator: std.mem.Allocator = if (!use_mimalloc) std.heap.c_allocator else @import("./memory_allocator.zig").huge_allocator; -/// For sizes larger than 8 MB, allocate via mmap() instead of malloc(). -/// For sizes less than 8 MB, allocate via mimalloc pub const auto_allocator: std.mem.Allocator = if (!use_mimalloc) std.heap.c_allocator else |