mirror of
https://github.com/odin-lang/Odin.git
synced 2026-09-18 18:35:16 -04:00
Minimize memory usage by having an arena per thread rather than an arena per file
This commit is contained in:
1 parent
cd89d8a3c4
commit
71df46456a
6 files changed
+15
-15
No files matched your search
+3
-1
@@ -89,7 +89,9 @@ template <typename T>
|
||||
void slice_init(Slice<T> *s, gbAllocator const &allocator, isize count) {
|
||||
GB_ASSERT(count >= 0);
|
||||
s->data = gb_alloc_array(allocator, T, count);
|
||||
GB_ASSERT(s->data != nullptr);
|
||||
if (count > 0) {
|
||||
GB_ASSERT(s->data != nullptr);
|
||||
}
|
||||
s->count = count;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user