Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Does it hamper the performance when looping at an object list?

Former Member
0 Likes
470

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.

2 REPLIES 2
Read only

Former Member
0 Likes
433

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.

Read only

Former Member
0 Likes
433

thanks a lot