3 ms·
There's an interesting talk [0] from Bobby Powers on how to make a malloc() and free() that perform compaction, to be able to release memory back to the operati
by remexre 6y ago
There's an interesting talk [0] from Bobby Powers on how to make a malloc() and free() that perform compaction, to be able to release memory back to the operating system more frequently (and improve cache hit rates, etc.). But this isn't standard at all yet.
[1]: https://www.youtube.com/watch?v=c1UBJbfR-H0 https://www.youtube.com/watch?v=c1UBJbfR-H0