Make the heap_allocator just be the permanent_allocator

This improves the speed of the compiler with very little memory increase (which surprised me, Ginger Bill)
This commit is contained in:
gingerBill
2023-01-12 00:20:25 +00:00
parent 5fa66ac6a8
commit e9cfe698ba
4 changed files with 17 additions and 12 deletions
+1 -5
View File
@@ -45,7 +45,7 @@
//
// Here is the API you need to know about:
//
gb_global gbAllocator mc_allocator = heap_allocator();
gb_global gbAllocator mc_allocator = permanent_allocator();
struct Find_Result {
int windows_sdk_version; // Zero if no Windows SDK found.
@@ -91,10 +91,6 @@ gb_internal void mc_free(String16 str) {
if (str.len) gb_free(mc_allocator, str.text);
}
gb_internal void mc_free_all() {
gb_free_all(mc_allocator);
}
typedef struct _MC_Find_Data {
DWORD file_attributes;
String filename;