Raised This Month: $ Target: $400
 0% 

Pawn Memory


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
vitorrd
Senior Member
Join Date: Jul 2009
Old 10-16-2009 , 09:42   Re: Pawn Memory
Reply With Quote #3

Quote:
Originally Posted by ot_207 View Post
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?
vitorrd is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode