3 ms·
That’s assuming each byte and/or line item is a new allocation rather than reusing already allocated memory for lines that have already been parsed. Plus not e
by hnlmorg 3y ago
That’s assuming each byte and/or line item is a new allocation rather than reusing already allocated memory for lines that have already been parsed.
Plus not every utility needs to consider large file usage. Eg a date/time formatter.
To be clear, I’m not advocating that people shouldn’t free. Just saying things aren’t always black and white.
A great example of this is one of Americas missile guidance systems famously has a memory leak. But it runs out of memory after its maximum range anyway. So the memory leak doesn’t affect the performance of the missile in any scenario.
Technology is often nuanced.