Dini or Fwrite (etc..)
#1

What do you prefer using and what is faster?
Currently I have having strange problems with fwrite, but I want to know if dini is easier and faster
I don't want answers like "Use that ...", keep it ontopic, hate offtopics
Reply
#2

Well, dini isn't hard and isn't easy. And dini is much faster. I would prefer you to use Dini.
Reply
#3

MySQL! (8 chars)
Reply
#4

Quote:
Originally Posted by Calgon
Посмотреть сообщение
MySQL! (8 chars)
That's a big mistake. I have used mysql 2 times. Mysql is so got damn slow, when server attemptd to connect and store data in database, server doesn't respond for 0.5 - 1.0 sec. DINI doesn't de-code anything or connect to anywhere. It's much faster.
Reply
#5

Quote:
Originally Posted by SaW_[VrTx]
Посмотреть сообщение
That's a big mistake. I have used mysql 2 times. Mysql is so got damn slow, when server attemptd to connect and store data in database, server doesn't respond for 0.5 - 1.0 sec. DINI doesn't de-code anything or connect to anywhere. It's much faster.
Your knowledge of the use of MySQL is evidently poor then, because MySQL prevails (when used properly/efficiently) - I pretty much have just proven my point, because you probably failed with your code, it doesn't take that long to process a query (it might, though, depending on the size of the query data returned/sent, which would probably have to be huge anyway).
Reply
#6

sdfdsfdsfsf, I said no offtopic
Can you post all functions from dini, I know only these
  • dini_Get
    dini_Int
    dini_IntSet
Reply
#7

Open dini.inc with notepad and see yourself ...
Reply
#8

I agree with Calgon, and Claude you asked what do we use, he gave you his opninion but as you are the topic starter I will follow your rule

Dini is indeed faster, its easier and the code looks cleaner with it

Here the Dini native functions
pawn Код:
native dini_Exists(filename[])
native dini_Remove(filename[])
native dini_Create(filename[])
native dini_Set(filename[],key[],value[])
native dini_IntSet(filename[],key[],value)
native dini_Int(filename[],key[])
native dini_FloatSet(filename[],key[],Float:value)
native Float:dini_Float(filename[],key[])
native dini_Bool(filename[],key[])
native dini_BoolSet(filename[],key[],value)
native dini_Unset(filename[],key[])
native dini_Get(filename[],key[])
native dini_Isset(filename[],key[])
native DINI_StripNewLine(string[])
native DINI_fcopytextfile(oldname[],newname[])
On a side note, I'd personaly (like calgon) prefer mysql, its easier then it looks, more dynamic, faster.
Reply
#9

A little question, if I have a stats saver when player disconnects, and I forgot one "Dini" function (e.g. password), does my file gets cleaned and then it writes again? (like fopen(file, io_write)
Reply
#10

Quote:
Originally Posted by Claude
Посмотреть сообщение
A little question, if I have a stats saver when player disconnects, and I forgot one "Dini" function (e.g. password), does my file gets cleaned and then it writes again? (like fopen(file, io_write)
No (8 chars).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)