On Friday, 6 July 2018 at 15:19:33 UTC, Ecstatic Coder wrote:
Actually you answer was right even if the point count was not
stored as an integer ;)
For C++, the answer is : never.
Two small memory blocks will have to be allocated from the
memory pool, which is not smart, obviously, but apart of that,
nothing to worry about.
Because there is no garbage collector in C++, memory has to be
allocated and deallocated in a continuous manner...
Recently it got somewhat pushed by Electron applications :)