diff options
| author | gingerBill <bill@gingerbill.org> | 2022-02-18 21:30:25 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-02-18 21:30:25 +0000 |
| commit | 71df46456a4db2592e8cebbdd4c46dc8b58b5a24 (patch) | |
| tree | 4152775ac24721cd026025d1e478d2eb9a254b41 /src/common.cpp | |
| parent | cd89d8a3c414a6929ec058a04aeec568d99505a5 (diff) | |
Minimize memory usage by having an arena per thread rather than an arena per file
Diffstat (limited to 'src/common.cpp')
| -rw-r--r-- | src/common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.cpp b/src/common.cpp index ab2a46118..d3ee95b76 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -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; |