User account system | Quick question about efficiency
#1

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?
Reply
#2

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.
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)