mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-08 05:48:51 -04: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:
1 parent
5fa66ac6a8
commit
e9cfe698ba
4 files changed
+17
-12
No files matched your search
@@ -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