Page 1 of 1
performance
Posted: Fri Jul 30, 2010 9:35 am
by guialtran
There is some loss of performance?
var cfg_file := ReadConfigFile( ":Books:itemdesc" );
or
var cfg_file := ReadConfigFile( ":*:itemdesc" );
Re: performance
Posted: Fri Jul 30, 2010 1:08 pm
by *Edwards
Which you think is the best?
ReadConfigFile( ":*:itemdesc" ); -- Will read all itemdesc.cfg from all packages.
ReadConfigFile( ":Books:itemdesc" ); -- Will read itemdesc.cfg from ":Books:itemdesc" only.
Personally, I prefer to read only the necessary files. But it shouldn't affect your sysload if the script is not called too often like a combat script.
Re: performance
Posted: Fri Jul 30, 2010 1:44 pm
by guialtran
and if it is used for a spell?
Re: performance
Posted: Thu Aug 05, 2010 9:51 am
by guialtran
I tested, not slow it is, has the same speed
Re: performance
Posted: Fri Aug 06, 2010 10:45 pm
by Turley
Of course reading all cfg files is slower, but only the first time then it is cached.