Full Version : xml spawner speed optimization
xmlspawner >>XMLSpawner - Discussion >>xml spawner speed optimization
<< Prev | Next >>
yarex- 03-20-2007
Hello,
This is not an advert on a tool, but recommendation to have better quality code for xml spawner, as i use love this addon.
Recently i used resharper tool (you can download and use demo to do the job )) )
to optimize all my custom scripts (ie remove unused code parts, extra references, unused but declared variables, unused namespaces... ) and shard average savetime dropped by 4 seconds.
I'v seen that xml spawner code could be hugely optimized that way too, so if you can, please use demo version on xml spawner code.
http://www.jetbrains.com/resharper/
You won't regret it.
ArteGordon- 03-20-2007
unfortunately it requires a full vs 2k5 installation and wont work with express (which is what I have).
I would be curious regarding optimizations that could improve save times since those are almost exclusively determined by item/mobile serialization and therefore are a direct function of the number of items/mobiles that have to be saved.
Generally, reduction of saving time requires reduction in those numbers.
To achieve savings any other way would require significant optimization of serialization code. I would be interested to see what that looked like.
yarex- 03-20-2007
It can reduce save / load time, becouse some declared and initialized variables that are unused
take space on stack or heap (depents on type) and removal will save time used for their
initialization.
At the moment all xmlspawner objects are saved serialized and there are lotz of them, so easy optimalisation can and will could affect the performance.
Also same with all unnecessary methods that are unused, it's always optimal way to keep the code minimalistic and resharper allows you to do it even without compilation (it shows you indicator whether code can be compiled without compilation and is marking all unused stuff, broken stuff, null reference potential dangers, as i sayeed, really worth to try.)
If it's not working with express version, for "home testing" if can give you link to
vs2005 version that will work with it.
Also you can download 300 days team system 2005 visual studio version that will work well for you.
Am just wanting to help, becouse you looks like a nice guy, so why not to do things easier way )).
Use my email from my registration if you want to look at this closer, if not, it doesn't matter )) heheh.
ArteGordon- 03-20-2007
I'll take a look.
yarex- 03-20-2007
vs 2005 180d trial
http://www.microsoft.com/downloads/details...&displaylang=en