|Ada 95 Quality and Style Guide||Chapter 10|
10.6.4 Bounded Strings
Use the predefined bounded strings when predictable performance is an issue and measured performance indicates.
The unbounded strings may be allocated on the heap. If bounded strings are not allocated on the heap, then they may provide better performance. Determine the impact of using the string type declared in instantiations of Ada.Strings.Bounded.Generic_Bounded_Length versus the type declared in Ada.Strings.Unbounded.
The predefined Ada 95 language environment defines packages that support both bounded and unbounded strings. Using bounded strings may avoid the unpredictable duration of delays associated with using heap storage.
|< Previous Page||Search||Contents||Index||Next Page >|