2011 Nov 09 3:06 AM
In Class B, I have a aggregation of object A.
Every time I want to find a proper A, I need to loop at the object list to check A->get_key( ) equals to the spec. key. In traditional ABAP loop a table is always slower than a read table.
Is this hampers the performance? the object list will be about 20-40 entries only, and not access many times.
In Class B, I have a aggregation of object A.
Every time I want to find a proper A, I need to loop at the object list to check A->get_key( ) equals to the spec. key. In traditional ABAP loop a table is always slower than a read table.
Is this hampers the performance? the object list will be about 20-40 entries only, and not access many times.
2011 Nov 09 3:34 AM
No, the performance will not be hampered much as it is only the reference to the object that is iterated. Of course, when you access the data and methods within the object while iterating it will need processing time depending on how large (memory wise) your objects are.
2011 Nov 09 3:42 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |