Groove Programming Tips & Tricks : Techniques to develop better tools in Groove
Updated: 1/21/2005; 10:19:44 AM.

 








Subscribe to "Groove Programming Tips & Tricks" in Radio UserLand.

Click to see the XML version of this web page.

 
 

Monday, September 09, 2002

Use globals in script sparingly, as it affects performance

Whenever a variable is referenced in script code, the context of the variable is determined first, which means some sort of lookup.  The use of a local variable reduces the surface area of the the lookup to the current function/method, while a global variable has the surface area of the entire CDATA section.

The following list of ways to store global data is prioritized, with the first item being the most performant and the last item being the least performant:
  1. GrooveRunTimeData (ScriptFreeThreadedComponent only)
  2. SharedObjectTable
  3. Global variables


8:25:32 AM    comment []

© Copyright 2005 Paresh Suthar.



Click here to visit the Radio UserLand website.
 


September 2002
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Aug   Nov