Minimize memory usage by having an arena per thread rather than an arena per file

This commit is contained in:
gingerBill
2022-02-18 21:30:25 +00:00
parent cd89d8a3c4
commit 71df46456a
6 changed files with 15 additions and 15 deletions

View File

@@ -1021,7 +1021,7 @@ LoadedFileError load_file_32(char const *fullpath, LoadedFile *memory_mapped_fil
#endif
}
gbFileContents fc = gb_file_read_contents(heap_allocator(), true, fullpath);
gbFileContents fc = gb_file_read_contents(permanent_allocator(), true, fullpath);
if (fc.size > I32_MAX) {
err = LoadedFile_FileTooLarge;