3 ms·
I never had the problem of too many pointers, but if I did I'd try the "arena"[0] approach. Preallocate a huge area of memory and use smaller indexes relative
by willcipriano 2y ago
I never had the problem of too many pointers, but if I did I'd try the "arena"[0] approach.
Preallocate a huge area of memory and use smaller indexes relative to the start instead. Provided a pointer is bigger than a int. You might be able to use this in that approach and keep partial pointers instead.
[0]https://www.rfleury.com/p/untangling-lifetimes-the-arena-allocator https://www.rfleury.com/p/untangling-lifetimes-the-arena-all...