Dynamic Objects freezing the server
#6

Quote:
Originally Posted by NoteND
Посмотреть сообщение
Thats how I convert my objects, pickups and spawnpoints..
Slowness is only on objects, since I tested only pickups and spawnpoints and they've converted in 0.5sec or less.

https://pastebin.com/j1p4DvVk
Your overhead could be on the XML parsing because the plugin need times to find a tag and the closing tag to fetch the value, it is more complicated than INI. (Note: i have not used that XML plugin)

Also overhead at loading files if that plugin does not support operation on external thread (like MySQL database plugin do with threaded queries) or the repeated operation with open/close the file (which i think Y_INI handle it better)

Even i think that using a CSV format of the map objects and load each line with sscanf would be faster (note: still overhead on finding/opening the file.

Still 30000 objects loading wouldn't take a second, maybe you could optimize it up to only 10 seconds
Reply


Messages In This Thread
Dynamic Objects freezing the server - by NoteND - 29.12.2018, 11:37
Re: Dynamic Objects freezing the server - by Threshold - 29.12.2018, 14:47
Re: Dynamic Objects freezing the server - by NoteND - 29.12.2018, 15:14
Re: Dynamic Objects freezing the server - by RoboN1X - 29.12.2018, 17:16
Re: Dynamic Objects freezing the server - by NoteND - 29.12.2018, 17:22
Re: Dynamic Objects freezing the server - by RoboN1X - 29.12.2018, 17:32

Forum Jump:


Users browsing this thread: 1 Guest(s)