Originally Posted By: Glenn Barnas
How long is "a long time"?
How many resources are mapped?
How many external scripts are run?
Do you run scripts that rely on resources before they are mapped?
Do you call batch files to perform tasks that can be done natively in Kix?
How do you process group and OU logic? Are you doing it repeatedly, or just making the decisions once?

Goto's won't generally affect performance, but make the code hard to follow and support. You can get rid of goto by, for example:
 Code:
; only run the win98 code for older systems, then exit
If @DOS = '4.10'
  Call 'win98.kix'
  Exit 0
EndIf


My login script (on my web site) is so tightly optimized that I need to make it wait so the user can verify that it ran. It processes about 30 resources and runs 3 external commands in under 4 seconds, including all of the group and ou-specific mapping logic. On the WAN, it takes about 9 seconds to run. Clearly, anything more than 15-20 seconds indicates that there is room for optimization.

Glenn

I will put in a measurement, but roughly around 20 seconds. Around 7 objects out of 50 possible are mapped, all based on group membership. A seperate group for each resource as well.
Will get back on you with the exact time, then we know how much difference improvements can make. Thanks for the bit of code as well. To my opinion there are not so many goto's in the code. If there are three goto's than that's it.

I'll get back to you about the time it takes for the script in whole to complete.


Edited by edjekroketje (2008-09-19 05:01 PM)
_________________________
Still thinking about a good signature