Arena allocations
Opened this issue · 1 comments
mverleg commented
There are three things to consider:
- The total required size of an arena should be known beforehand.
- All the data in an arena should be cleaned up at the same time.
- It may impact multithreading (either not sync, or too many atomic operations).
For #1, while its impossible to know the amount of memory required, it is acceptable to use multiple arena's.
For #2, this should be easy, as most things are needed until the end of compilation.
For #3, this remains an open issue, but can be delayed until multi-threading is actually added.
mverleg commented
This could be combined with flyweight, maybe.