3 ms·
Building a system that allocates memory once up-front requires up-front thinking. sqlite apparently has some support for this, although of course you make it
by chubot 4y ago
Building a system that allocates memory once up-front requires up-front thinking.
sqlite apparently has some support for this, although of course you make it more predictable if you control all the code.
https://www.sqlite.org/malloc.html https://www.sqlite.org/malloc.html
They even provide some nice math for you to create the fixed size heap!
The problem of dynamic memory allocation, and specifically the problem of a memory allocator breakdown, has been studied by J. M. Robson and the results published as
J. M. Robson. "Bounds for Some Functions Concerning Dynamic Storage Allocation". Journal of the Association for Computing Machinery, Volume 21, Number 8, July 1974, pages 491-499.
- matheusmoreira 4y agoThanks for the reference, that Robson proof is amazing. Published in 1974... I wonder what other treasures are hidden in the literature.