Progress
Programming
Handbook
Factors that Affect R-code Size
You can affect r-code size by how you write your 4GL, depending on the r-code segment. The action code and initial value segments are among the most tunable.
Action Code Segment
You can reduce the size of the action code segment by consolidating multiple 4GL statements into one. This also can increase the speed of execution, because the interpreter executes only one action instead of several.
For example, you can reduce action code size by combining several consecutive assignment statements into one ASSIGN statement.
NOTE: Both of these examples require the same amount of expression code.Initial Value Segment
You can reduce the size of the initial value segment by limiting the number of SHARED variables that are accessed in a procedure. The r-code required to support a SHARED variable is larger than the r-code to support a NEW SHARED variable. Progress uses approximately 36 additional bytes in the initial value segment to resolve each SHARED variable at run time. This value can change depending on the environment.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |