3 ms·
Are you taking into account memory fragmentation? Or the internal malloc data structures? If your record were just 1 byte more, it could easily double the tot
by ken 7y ago
Are you taking into account memory fragmentation? Or the internal malloc data structures? If your record were just 1 byte more, it could easily double the total actual memory usage.
Memory usage is discrete, not continuous. It's not as simple as calculating the safety factor on a rope.
- cozzyd 7y agoIf you don't free, malloc doesn't need all that overhead