mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-04 20:17:48 +00:00
Minimize memory usage by having an arena per thread rather than an arena per file
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user