| |
 |
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:
-
GrooveRunTimeData (ScriptFreeThreadedComponent only)
-
SharedObjectTable
-
Global variables
8:25:32 AM
|
|
© Copyright 2005 Paresh Suthar.
|
|
|
|
| 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 |
|
|