SA-MP Forums Archive
About time I change out my file system. (Suggestions please) - 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: About time I change out my file system. (Suggestions please) (/showthread.php?tid=304626)



About time I change out my file system. (Suggestions please) - Hoborific - 19.12.2011

So, so far I have been using Dini happily, for the last year and a half at least.

But I can feel the slowness of this, and I'm looking to upgrade, i'd prefer something with a similar or at least.. not so complicated system, I'm mainly looking for an INI file system, I suck with queries.


Re: About time I change out my file system. (Suggestions please) - Steven82 - 19.12.2011

Well Y_INI may seem hard at first, but once you use it for a little bit and get the hang of it, it's fairly simple. If you honestly don't need MySQL don't use it. I've learned that lesson. Y_INI is faster or just about the same speed if i remember correctly, and more secure than MySQL. Alot of people seem to not understand that, and they make their gamemodes using MySQL without anything to use MySQL with. I plan to make or have someone help me make a UCP for S82-CnR after i release v1.0 and get all the bugs fixed.


Re: About time I change out my file system. (Suggestions please) - Hoborific - 19.12.2011

Thanks, And I completely understand, thus the lack of interest in MYSQL.

Y_Ini it is then. I better get converting.

rep++


Re: About time I change out my file system. (Suggestions please) - Steven82 - 19.12.2011

If you do need some help with Y_INI. Kush has a wonderful tutorial in the tutorials section. If you want i can link you to it. You know what nevermind, here is the link.

Click me!

Edit:

By the way i used to use Dini up until about 2 months ago. I completely understand, how you feel about it.


Re: About time I change out my file system. (Suggestions please) - Hoborific - 19.12.2011

Thanks, Sometimes I think ****** is too smart for his own good, his standard of our definitions is a little high, and his tutorials have never helped me all that much, but Kush's is great, I've already learnt something.


Re: About time I change out my file system. (Suggestions please) - suhrab_mujeeb - 19.12.2011

Just a question here, why do people hate dini? It isn't that bad and does the work alright. And how much slower can it be, maybe at most 1 second late than Y_Ini.


Re: About time I change out my file system. (Suggestions please) - Calgon - 19.12.2011

Quote:
Originally Posted by suhrab_mujeeb
Посмотреть сообщение
Just a question here, why do people hate dini? It isn't that bad and does the work alright. And how much slower can it be, maybe at most 1 second late than Y_Ini.
Dini is inefficient because for every single file operation, it opens the file, writes/reads and then closes it. Newer INI systems tend to append the information to memory, perform the relevant actions, then closes the file, after opening it first of course.

You'll notice the speed differences when you're dealing with player files and hundreds of player variables in comparison to Y_INI.


Re: About time I change out my file system. (Suggestions please) - suhrab_mujeeb - 19.12.2011

Quote:
Originally Posted by Calgon
Посмотреть сообщение
Dini is inefficient because for every single file operation, it opens the file, writes/reads and then closes it. Newer INI systems tend to append the information to memory, perform the relevant actions, then closes the file, after opening it first of course.

You'll notice the speed differences when you're dealing with player files and hundreds of player variables in comparison to Y_INI.
Thanks for the explanation.