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

View File

@@ -306,10 +306,11 @@ gb_internal gbAllocator temporary_allocator() {
gb_internal GB_ALLOCATOR_PROC(heap_allocator_proc);
gb_internal gbAllocator heap_allocator(void) {
gbAllocator a;
a.proc = heap_allocator_proc;
a.data = nullptr;
return a;
return arena_allocator(&permanent_arena);
// gbAllocator a;
// a.proc = heap_allocator_proc;
// a.data = nullptr;
// return a;
}