INI files include
#1

I recently returned to scripting after several years and I wonder what includes do you use to edit INI files. I tried to search on wiki, but I couldn't find anything. Before I used dcmd for saving everything, but I don't know if it is still efficent. Then I looked at YSI, which I don't understand much yet, and it looked that it hasn't been updated for 2 years. Could you help me out?

Thanks a lot for all answers

Never mind I found out fini and I will probably use that one.
Reply
#2

Try to use djson. It makes .json files that are more efficient than .ini files.
In the past I used SII as .ini include.
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
YSI has been updated, but it's a new branch.

As for .json files - on what are you basing the claim that they're more efficient (in PAWN)?
I started using Dracoblue's JavaScriptObjectNotation for PAWN 2 weeks ago.

I think that because you can save all the data on one line and all in one file. I know YSI_INI can save all accounts in one file with [tags], but I understood djson and SII better. I have downloaded YSI, and in some scripts I include some parts of it.
Reply
#4

Quote:
Originally Posted by [GF]Sasino97
Посмотреть сообщение
Try to use djson. It makes .json files that are more efficient than .ini files.
In the past I used SII as .ini include.
DJSON is NOT efficient if you compare it's speed against any other .ini file include.
DJSON gets very slow very fast when you have more and bigger files.
I've made a test where I've compared speeds of reading and writing 1000 values and DJSON was slower than all 6-10 other INI scripts...
Reply


Forum Jump:


Users browsing this thread: