diff options
author | 2022-06-03 04:44:11 -0700 | |
---|---|---|
committer | 2022-06-03 04:44:11 -0700 | |
commit | e5322eb63bf6ff8deb0f2aade42b9caae40a47cc (patch) | |
tree | 87b72fe1895f92068e908aaaddafe5ef514d8daf /src/global.zig | |
parent | 102553dca6a090533725416cc384d36a49a9ce1d (diff) | |
download | bun-e5322eb63bf6ff8deb0f2aade42b9caae40a47cc.tar.gz bun-e5322eb63bf6ff8deb0f2aade42b9caae40a47cc.tar.zst bun-e5322eb63bf6ff8deb0f2aade42b9caae40a47cc.zip |
Move streams to it's own file
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 |