[HELP]Dini or Yini
#1

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

It definitely does.
Reply
#3

How much?
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)