Ada 95 Quality and Style Guide | Chapter 10 |
10.4.4 Records and Arraysguideline
Define arrays of records as parallel arrays when measured performance indicates. example
-- Array of records Process (Student (Index).Name, Student (Index).Grade); -- Record of arrays Process (Student.Name (Index), Student.Grade (Index)); -- Parallel arrays Process (Name (Index), Grade (Index));rationale
Determine the impact of structuring data as arrays of records, records containing arrays, or parallel arrays. Some implementations of Ada will show significant performance differences among these examples.
< Previous Page | Search | Contents | Index | Next Page > |
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
TOC | TOC | TOC | TOC | TOC | TOC | TOC | TOC | TOC | TOC | TOC |
Appendix | References | Bibliography |