3 ms·
I wish it was that easy. Destructing of your vectors does not guarantee that the memory will be released back to the OS, and it is not, if your OS is desktop Li
by whatever1 5y ago
I wish it was that easy. Destructing of your vectors does not guarantee that the memory will be released back to the OS, and it is not, if your OS is desktop Linux.
See an example here: https://stackoverflow.com/questions/26020580/huge-stdvectorstdvector-does-not-release-all-memory-on-destruction https://stackoverflow.com/questions/26020580/huge-stdvectors...
- keithalewis 5y agoThis is not a problem a C++ compiler vendor can solve.