dghosef / qdbp

MIT License
51 stars 1 forks source link

New Malloc/Free Strategy #42

Closed dghosef closed 1 year ago

dghosef commented 1 year ago

We can have everything use the freelist strategy, but have the freelists be dynamically resizable. This is because the maximum possible object size can be pre-determined. Also realistically, there won't be more than, say, 2^13(8192) fields in a struct, so we just need to make 13 freelists. When we run out of memory, we can garbage collect easily.

dghosef commented 1 year ago

The only time we will need malloc/free is for gmp, capture arrays and strings