SA-MP Forums Archive
User account system | Quick question about efficiency - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: User account system | Quick question about efficiency (/showthread.php?tid=554987)



User account system | Quick question about efficiency - ABKPot - 06.01.2015

I am currently working on a server, and I am trying to find out which is the most efficient method of saving/loading player information into a file for an user account/saving system, to optimize my server.

Is it more efficient to: 1) read from the file every-time when needed (Current method)... or is it: 2) more efficient to load and store the user file information into variables, then update the user files with the variables on a timely basis? Are there any better methods, besides these?


Re: User account system | Quick question about efficiency - Camacorn - 06.01.2015

Loading the statistics into a variable is much more efficient than accessing the profile every time you need to grab a statistic.

If you aren't already, I would suggest converting to MySQL, in most cases, it is much more efficient than using a file system.


Re: User account system | Quick question about efficiency - ATGOggy - 06.01.2015

Beginners must use y_ini and when he advances, he can use MYSQL