diff options
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index 050cee60..86c302fe 100644 --- a/src/main.zig +++ b/src/main.zig @@ -138,6 +138,11 @@ fn webMain() !void { try @import("gui/gui.zig").run(.{}, .{}, null); } +// init.gpa, what the tty, gui and detached shells allocate from, is +// std.start's: a DebugAllocator in Debug and, since we link libc, libc's +// malloc otherwise. Kept on purpose: glibc's malloc was measured at least as +// fast as std.heap.smp_allocator on every scenario and faster on MuPDF's +// page-sized rasters. macos.zig makes the same choice for itself. fn nativeMain(init: std.process.Init) !void { var stderr_probe: [64]u8 = undefined; _ = std.debug.lockStderr(&stderr_probe); |
