replace calloc with mimalloc

This commit is contained in:
Pierre Tachoire
2024-04-09 16:22:20 +02:00
parent 9363acf4ec
commit 3834ebcfa4
8 changed files with 22 additions and 185 deletions

View File

@@ -17,6 +17,8 @@ const Types = @import("../main_wpt.zig").Types;
// It loads first the js libs files.
pub fn run(arena: *std.heap.ArenaAllocator, comptime dir: []const u8, f: []const u8, loader: *FileLoader) !jsruntime.JSResult {
const alloc = arena.allocator();
try parser.init();
defer parser.deinit();
// document
const file = try std.fs.cwd().openFile(f, .{});