[HELP]Dini or Yini - 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: [HELP]Dini or Yini (
/showthread.php?tid=401107)
[HELP]Dini or Yini -
SpawneR - 21.12.2012
Hi ,
i made my own gamemode from scratch and i made it in Dini.. It has 27k lines and im lazy to make the Yini saving system.. Does dini slow my server or something like that?
Re: [HELP]Dini or Yini -
Jakku - 21.12.2012
It definitely does.
Re: [HELP]Dini or Yini -
SpawneR - 21.12.2012
How much?
Re: [HELP]Dini or Yini -
Jakku - 21.12.2012
Depends on the amount of saved data.
Let's imagine you are saving three different variables into the same file:
Dini's writing procedure:
- Open file
- Write 1st piece
- Close file
- Open file
- Write 2nd piece
- Close file
- Open file
- Write 3rd piece
- Close file
Y_ini's:
- Open file
- Write 1st var
- Write 2nd var
- Write 3rd var
- Close file
Constant opening / closing of the file slows it down. Y_ini opens the file once, writes in the data, and then closes the file. Noticeable lag will be present if you have huge amounts of data to save with Dini. I was fighting with this issue years ago too. Been happy since I went to y_ini