What would be useful and faster? - 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: What would be useful and faster? (
/showthread.php?tid=537480)
What would be useful and faster? -
ranme15 - 15.09.2014
One:
pos.txt
Код:
25, 0.0, 0.0, 0.0, 40.0
26, 0.0, 0.0, 0.0, 40.0
27, 0.0, 0.0, 0.0, 40.0
--
Two:
25.txt
Код:
PosX=0.0
PosY=0.0
PosZ=0.0
Angle=40.0
26.txt
Код:
PosX=0.0
PosY=0.0
PosZ=0.0
Angle=40.0
27.txt
Код:
PosX=0.0
PosY=0.0
PosZ=0.0
Angle=40.0
--
Thanks.
Re: What would be useful and faster? -
GunZ75 - 15.09.2014
Probably first of course cause it just needs to open 1 file and execute 3 lines
AW: What would be useful and faster? -
NaS - 15.09.2014
Opening many different files is wayy slower than just reading one line per entry (+ processing).
Re: What would be useful and faster? -
DobbysGamertag - 15.09.2014
Try
benchmarking and find out.
Re: What would be useful and faster? -
Pottus - 15.09.2014
Depends on what your doing with this data but at first glance I would be using sqlite it integrates very nicely in dynamic system design which is what this looks like. I don't use ini anymore in fact the only time I use file functions is for importing/exporting.