Quote:
Originally Posted by ot_207
The problem is that Array is slower than the first one, and will lag your server.
I suggest using the first one.
After Function() execution the memory will be freed after end of execution
After Function(2) execution, alloc, insert, get and after that the memory will be freed.
And as memory loss. It is basically the same.
4*15*1024 = 61440B = 60KB
|
So much for smoothness...
Lag the server? No, not really.
If you know the precise size of your array, you should use the first implementation. How often is your function called?