|Ada 95 Quality and Style Guide||Chapter 10|
10.4.1 Dynamic Arrays
Use constrained arrays when measured performance indicates.
If array bounds are not known until run-time, then calculations of these bounds may affect run-time performance. Using named constants or static expressions as array bounds may provide better performance than using variables or nonstatic expressions. Thus, if the values of Lower and Upper are not determined until run-time, then:... is array (Lower .. Upper) of ...
may cause address and offset calculations to be delayed until run-time, introducing a performance penalty. See NASA (1992) for a detailed discussion of the tradeoffs and alternatives.
|< Previous Page||Search||Contents||Index||Next Page >|