mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 17:34:34 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user